public class ShapelessRecipe extends java.lang.Object implements ICraftingRecipe
Modifier and Type | Class and Description |
---|---|
static class |
ShapelessRecipe.Serializer |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
group |
private ResourceLocation |
id |
private boolean |
isSimple |
private NonNullList<Ingredient> |
recipeItems |
private ItemStack |
recipeOutput |
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, wait
getType
getIcon, getRemainingItems, isDynamic
private final ResourceLocation id
private final java.lang.String group
private final ItemStack recipeOutput
private final NonNullList<Ingredient> recipeItems
private final boolean isSimple
public 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>