public interface Recipe<C extends Inventory>
Modifier and Type | Method and Description |
---|---|
ItemStack |
craft(C inv) |
boolean |
fits(int width,
int height) |
default String |
getGroup() |
Identifier |
getId() |
ItemStack |
getOutput() |
default DefaultedList<Ingredient> |
getPreviewInputs() |
default ItemStack |
getRecipeKindIcon() |
default DefaultedList<ItemStack> |
getRemainingStacks(C c) |
RecipeSerializer<?> |
getSerializer() |
RecipeType<?> |
getType() |
default boolean |
isIgnoredInRecipeBook() |
boolean |
matches(C inv,
World world) |
@Environment(value=CLIENT) boolean fits(int width, int height)
ItemStack getOutput()
default DefaultedList<ItemStack> getRemainingStacks(C c)
default DefaultedList<Ingredient> getPreviewInputs()
default boolean isIgnoredInRecipeBook()
@Environment(value=CLIENT) default String getGroup()
@Environment(value=CLIENT) default ItemStack getRecipeKindIcon()
Identifier getId()
RecipeSerializer<?> getSerializer()
RecipeType<?> getType()