public interface IRecipe<C extends IInventory>
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
canFit(int width,
int height)
Used to determine if this recipe can fit in a grid of the given width/height
|
ItemStack |
getCraftingResult(C inv)
Returns an Item that is the result of this recipe
|
default java.lang.String |
getGroup()
Recipes with equal group are combined into one button in the recipe book
|
default ItemStack |
getIcon() |
ResourceLocation |
getId() |
default NonNullList<Ingredient> |
getIngredients() |
ItemStack |
getRecipeOutput()
Get the result of this recipe, usually for display purposes (e.g. recipe book).
|
default NonNullList<ItemStack> |
getRemainingItems(C inv) |
IRecipeSerializer<?> |
getSerializer() |
IRecipeType<?> |
getType() |
default boolean |
isDynamic()
If true, this recipe does not appear in the recipe book and does not respect recipe unlocking (and the
doLimitedCrafting gamerule)
|
boolean |
matches(C inv,
World worldIn)
Used to check if a recipe matches current crafting inventory
|
boolean matches(C inv, World worldIn)
ItemStack getCraftingResult(C inv)
boolean canFit(int width, int height)
ItemStack getRecipeOutput()
default NonNullList<ItemStack> getRemainingItems(C inv)
default NonNullList<Ingredient> getIngredients()
default boolean isDynamic()
default java.lang.String getGroup()
default ItemStack getIcon()
ResourceLocation getId()
IRecipeSerializer<?> getSerializer()
IRecipeType<?> getType()