Package net.minecraft.item.crafting
Class ShapelessRecipe
java.lang.Object
net.minecraft.item.crafting.ShapelessRecipe
- All Implemented Interfaces:
ICraftingRecipe
,IRecipe<CraftingInventory>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
private final ResourceLocation
private final NonNullList<Ingredient>
private final boolean
private final ItemStack
-
Constructor Summary
ConstructorDescriptionShapelessRecipe
(ResourceLocation p_i48161_1_, String p_i48161_2_, ItemStack p_i48161_3_, NonNullList<Ingredient> p_i48161_4_) -
Method Summary
Modifier and TypeMethodDescriptionassemble
(CraftingInventory p_77572_1_) boolean
canCraftInDimensions
(int p_194133_1_, int p_194133_2_) getGroup()
getId()
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 Details
-
id
-
group
-
result
-
ingredients
-
isSimple
private final boolean isSimple
-
-
Constructor Details
-
ShapelessRecipe
public ShapelessRecipe(ResourceLocation p_i48161_1_, String p_i48161_2_, ItemStack p_i48161_3_, NonNullList<Ingredient> p_i48161_4_)
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceIRecipe<CraftingInventory>
-
getSerializer
- Specified by:
getSerializer
in interfaceIRecipe<CraftingInventory>
-
getGroup
- Specified by:
getGroup
in interfaceIRecipe<CraftingInventory>
-
getResultItem
- Specified by:
getResultItem
in interfaceIRecipe<CraftingInventory>
-
getIngredients
- Specified by:
getIngredients
in interfaceIRecipe<CraftingInventory>
-
matches
- Specified by:
matches
in interfaceIRecipe<CraftingInventory>
-
assemble
- Specified by:
assemble
in interfaceIRecipe<CraftingInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_) - Specified by:
canCraftInDimensions
in interfaceIRecipe<CraftingInventory>
-