Package net.minecraft.item.crafting
Class ShapelessRecipe
java.lang.Object
net.minecraft.item.crafting.ShapelessRecipe
- All Implemented Interfaces:
ICraftingRecipe,IRecipe<CraftingInventory>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final ResourceLocationprivate final NonNullList<Ingredient>private final booleanprivate final ItemStack -
Constructor Summary
ConstructorsConstructorDescriptionShapelessRecipe(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_) booleancanCraftInDimensions(int p_194133_1_, int p_194133_2_) getGroup()getId()booleanmatches(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, waitMethods inherited from interface net.minecraft.item.crafting.ICraftingRecipe
getTypeMethods 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:
getIdin interfaceIRecipe<CraftingInventory>
-
getSerializer
- Specified by:
getSerializerin interfaceIRecipe<CraftingInventory>
-
getGroup
- Specified by:
getGroupin interfaceIRecipe<CraftingInventory>
-
getResultItem
- Specified by:
getResultItemin interfaceIRecipe<CraftingInventory>
-
getIngredients
- Specified by:
getIngredientsin interfaceIRecipe<CraftingInventory>
-
matches
- Specified by:
matchesin interfaceIRecipe<CraftingInventory>
-
assemble
- Specified by:
assemblein interfaceIRecipe<CraftingInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_) - Specified by:
canCraftInDimensionsin interfaceIRecipe<CraftingInventory>
-