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 classShapelessRecipe.Serializer
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringgroupprivate ResourceLocationidprivate NonNullList<Ingredient>ingredientsprivate booleanisSimpleprivate ItemStackresult
-
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 ItemStackassemble(CraftingInventory p_77572_1_)booleancanCraftInDimensions(int p_194133_1_, int p_194133_2_)java.lang.StringgetGroup()ResourceLocationgetId()NonNullList<Ingredient>getIngredients()ItemStackgetResultItem()IRecipeSerializer<?>getSerializer()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, 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:
getIdin interfaceIRecipe<CraftingInventory>
-
getSerializer
public IRecipeSerializer<?> getSerializer()
- Specified by:
getSerializerin interfaceIRecipe<CraftingInventory>
-
getGroup
public java.lang.String getGroup()
- Specified by:
getGroupin interfaceIRecipe<CraftingInventory>
-
getResultItem
public ItemStack getResultItem()
- Specified by:
getResultItemin interfaceIRecipe<CraftingInventory>
-
getIngredients
public NonNullList<Ingredient> getIngredients()
- Specified by:
getIngredientsin interfaceIRecipe<CraftingInventory>
-
matches
public boolean matches(CraftingInventory p_77569_1_, World p_77569_2_)
- Specified by:
matchesin interfaceIRecipe<CraftingInventory>
-
assemble
public ItemStack assemble(CraftingInventory p_77572_1_)
- Specified by:
assemblein interfaceIRecipe<CraftingInventory>
-
canCraftInDimensions
public boolean canCraftInDimensions(int p_194133_1_, int p_194133_2_)- Specified by:
canCraftInDimensionsin interfaceIRecipe<CraftingInventory>
-
-