public class ShapelessRecipe extends Object implements CraftingRecipe
| Modifier and Type | Class and Description |
|---|---|
static class |
ShapelessRecipe.Serializer |
| Modifier and Type | Field and Description |
|---|---|
private String |
group |
private Identifier |
id |
private DefaultedList<Ingredient> |
input |
private ItemStack |
output |
| Constructor and Description |
|---|
ShapelessRecipe(Identifier id,
String group,
ItemStack output,
DefaultedList<Ingredient> input) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
craft(CraftingInventory craftingInventory) |
boolean |
fits(int width,
int height) |
String |
getGroup() |
Identifier |
getId() |
ItemStack |
getOutput() |
DefaultedList<Ingredient> |
getPreviewInputs() |
RecipeSerializer<?> |
getSerializer() |
boolean |
matches(CraftingInventory craftingInventory,
World world) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypegetRecipeKindIcon, getRemainingStacks, isIgnoredInRecipeBookprivate final Identifier id
private final String group
private final ItemStack output
private final DefaultedList<Ingredient> input
public ShapelessRecipe(Identifier id, String group, ItemStack output, DefaultedList<Ingredient> input)
public Identifier getId()
getId in interface Recipe<CraftingInventory>public RecipeSerializer<?> getSerializer()
getSerializer in interface Recipe<CraftingInventory>@Environment(value=CLIENT) public String getGroup()
getGroup in interface Recipe<CraftingInventory>public ItemStack getOutput()
getOutput in interface Recipe<CraftingInventory>public DefaultedList<Ingredient> getPreviewInputs()
getPreviewInputs in interface Recipe<CraftingInventory>public boolean matches(CraftingInventory craftingInventory, World world)
matches in interface Recipe<CraftingInventory>public ItemStack craft(CraftingInventory craftingInventory)
craft in interface Recipe<CraftingInventory>@Environment(value=CLIENT)
public boolean fits(int width,
int height)
fits in interface Recipe<CraftingInventory>