Package net.minecraft.recipe
Class MapExtendingRecipe
java.lang.Object
net.minecraft.recipe.ShapedRecipe
net.minecraft.recipe.MapExtendingRecipe
- All Implemented Interfaces:
CraftingRecipe,Recipe<CraftingInventory>
public class MapExtendingRecipe extends ShapedRecipe
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.recipe.ShapedRecipe
ShapedRecipe.Serializer -
Constructor Summary
Constructors Constructor Description MapExtendingRecipe(Identifier identifier) -
Method Summary
Modifier and Type Method Description ItemStackcraft(CraftingInventory craftingInventory)Crafts this recipe.RecipeSerializer<?>getSerializer()booleanisIgnoredInRecipeBook()booleanmatches(CraftingInventory craftingInventory, World world)Determines whether this recipe matches the contents currently placed inside the available crafting grid.private booleanmatches(MapState state)Methods inherited from class net.minecraft.recipe.ShapedRecipe
fits, getGroup, getHeight, getId, getIngredients, getItemStack, getOutput, getWidth, removePaddingMethods 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
createIcon, getRemainder
-
Constructor Details
-
MapExtendingRecipe
-
-
Method Details
-
matches
Description copied from interface:RecipeDetermines whether this recipe matches the contents currently placed inside the available crafting grid.- Specified by:
matchesin interfaceRecipe<CraftingInventory>- Overrides:
matchesin classShapedRecipe
-
matches
-
craft
Description copied from interface:RecipeCrafts this recipe.This method may perform side effects on the
inventoryargument.This method should return a new item stack on each call.
- Specified by:
craftin interfaceRecipe<CraftingInventory>- Overrides:
craftin classShapedRecipe- Returns:
- the resulting item stack
-
isIgnoredInRecipeBook
public boolean isIgnoredInRecipeBook() -
getSerializer
- Specified by:
getSerializerin interfaceRecipe<CraftingInventory>- Overrides:
getSerializerin classShapedRecipe
-