Package net.minecraft.recipe
Class ShapelessRecipe
java.lang.Object
net.minecraft.recipe.ShapelessRecipe
- All Implemented Interfaces:
CraftingRecipe,Recipe<CraftingInventory>
public class ShapelessRecipe extends Object implements CraftingRecipe
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShapelessRecipe.Serializer -
Field Summary
Fields Modifier and Type Field Description private Stringgroupprivate Identifieridprivate DefaultedList<Ingredient>inputprivate ItemStackoutput -
Constructor Summary
Constructors Constructor Description ShapelessRecipe(Identifier id, String group, ItemStack output, DefaultedList<Ingredient> input) -
Method Summary
Modifier and Type Method Description ItemStackcraft(CraftingInventory craftingInventory)booleanfits(int width, int height)StringgetGroup()IdentifiergetId()ItemStackgetOutput()DefaultedList<Ingredient>getPreviewInputs()RecipeSerializer<?>getSerializer()booleanmatches(CraftingInventory craftingInventory, World world)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.recipe.CraftingRecipe
getTypeMethods inherited from interface net.minecraft.recipe.Recipe
getRecipeKindIcon, getRemainingStacks, isIgnoredInRecipeBook, method_31584
-
Field Details
-
id
-
group
-
output
-
input
-
-
Constructor Details
-
ShapelessRecipe
public ShapelessRecipe(Identifier id, String group, ItemStack output, DefaultedList<Ingredient> input)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceRecipe<CraftingInventory>
-
getSerializer
- Specified by:
getSerializerin interfaceRecipe<CraftingInventory>
-
getGroup
- Specified by:
getGroupin interfaceRecipe<CraftingInventory>
-
getOutput
- Specified by:
getOutputin interfaceRecipe<CraftingInventory>
-
getPreviewInputs
- Specified by:
getPreviewInputsin interfaceRecipe<CraftingInventory>
-
matches
- Specified by:
matchesin interfaceRecipe<CraftingInventory>
-
craft
- Specified by:
craftin interfaceRecipe<CraftingInventory>
-
fits
@Environment(CLIENT) public boolean fits(int width, int height)- Specified by:
fitsin interfaceRecipe<CraftingInventory>
-