Package net.minecraft.item.crafting
Class ShapelessRecipe
- java.lang.Object
-
- net.minecraft.item.crafting.ShapelessRecipe
-
- All Implemented Interfaces:
ICraftingRecipe
,IRecipe<CraftingInventory>
public class ShapelessRecipe extends java.lang.Object implements ICraftingRecipe
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShapelessRecipe.Serializer
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
group
private ResourceLocation
id
private NonNullList<Ingredient>
ingredients
private boolean
isSimple
private ItemStack
result
-
Constructor Summary
Constructors Constructor Description ShapelessRecipe(ResourceLocation p_i48161_1_, java.lang.String p_i48161_2_, ItemStack p_i48161_3_, NonNullList<Ingredient> p_i48161_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStack
assemble(CraftingInventory p_77572_1_)
boolean
canCraftInDimensions(int p_194133_1_, int p_194133_2_)
java.lang.String
getGroup()
ResourceLocation
getId()
NonNullList<Ingredient>
getIngredients()
ItemStack
getResultItem()
IRecipeSerializer<?>
getSerializer()
boolean
matches(CraftingInventory p_77569_1_, World p_77569_2_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.item.crafting.ICraftingRecipe
getType
-
Methods inherited from interface net.minecraft.item.crafting.IRecipe
getRemainingItems, getToastSymbol, isSpecial
-
-
-
-
Field Detail
-
id
private final ResourceLocation id
-
group
private final java.lang.String group
-
result
private final ItemStack result
-
ingredients
private final NonNullList<Ingredient> ingredients
-
isSimple
private final boolean isSimple
-
-
Constructor Detail
-
ShapelessRecipe
public ShapelessRecipe(ResourceLocation p_i48161_1_, java.lang.String p_i48161_2_, ItemStack p_i48161_3_, NonNullList<Ingredient> p_i48161_4_)
-
-
Method Detail
-
getId
public ResourceLocation getId()
- Specified by:
getId
in interfaceIRecipe<CraftingInventory>
-
getSerializer
public IRecipeSerializer<?> getSerializer()
- Specified by:
getSerializer
in interfaceIRecipe<CraftingInventory>
-
getGroup
public java.lang.String getGroup()
- Specified by:
getGroup
in interfaceIRecipe<CraftingInventory>
-
getResultItem
public ItemStack getResultItem()
- Specified by:
getResultItem
in interfaceIRecipe<CraftingInventory>
-
getIngredients
public NonNullList<Ingredient> getIngredients()
- Specified by:
getIngredients
in interfaceIRecipe<CraftingInventory>
-
matches
public boolean matches(CraftingInventory p_77569_1_, World p_77569_2_)
- Specified by:
matches
in interfaceIRecipe<CraftingInventory>
-
assemble
public ItemStack assemble(CraftingInventory p_77572_1_)
- Specified by:
assemble
in interfaceIRecipe<CraftingInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_)
- Specified by:
canCraftInDimensions
in interfaceIRecipe<CraftingInventory>
-
-