public class ShapelessRecipe extends java.lang.Object implements ICraftingRecipe
| Modifier and Type | Class and Description |
|---|---|
static class |
ShapelessRecipe.Serializer |
| Constructor and Description |
|---|
ShapelessRecipe(ResourceLocation idIn,
java.lang.String groupIn,
ItemStack recipeOutputIn,
NonNullList<Ingredient> recipeItemsIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canFit(int width,
int height) |
ItemStack |
getCraftingResult(CraftingInventory inv) |
java.lang.String |
getGroup() |
ResourceLocation |
getId() |
NonNullList<Ingredient> |
getIngredients() |
ItemStack |
getRecipeOutput() |
IRecipeSerializer<?> |
getSerializer() |
boolean |
matches(CraftingInventory inv,
World worldIn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypegetIcon, getRemainingItems, isDynamicpublic ShapelessRecipe(ResourceLocation idIn, java.lang.String groupIn, ItemStack recipeOutputIn, NonNullList<Ingredient> recipeItemsIn)
public ResourceLocation getId()
getId in interface IRecipe<CraftingInventory>public IRecipeSerializer<?> getSerializer()
getSerializer in interface IRecipe<CraftingInventory>public java.lang.String getGroup()
getGroup in interface IRecipe<CraftingInventory>public ItemStack getRecipeOutput()
getRecipeOutput in interface IRecipe<CraftingInventory>public NonNullList<Ingredient> getIngredients()
getIngredients in interface IRecipe<CraftingInventory>public boolean matches(CraftingInventory inv, World worldIn)
matches in interface IRecipe<CraftingInventory>public ItemStack getCraftingResult(CraftingInventory inv)
getCraftingResult in interface IRecipe<CraftingInventory>public boolean canFit(int width,
int height)
canFit in interface IRecipe<CraftingInventory>