Package net.minecraft.recipe
Class BannerDuplicateRecipe
java.lang.Object
net.minecraft.recipe.SpecialCraftingRecipe
net.minecraft.recipe.BannerDuplicateRecipe
- All Implemented Interfaces:
CraftingRecipe,Recipe<CraftingInventory>
public class BannerDuplicateRecipe extends SpecialCraftingRecipe
-
Constructor Summary
Constructors Constructor Description BannerDuplicateRecipe(Identifier id) -
Method Summary
Modifier and Type Method Description ItemStackcraft(CraftingInventory craftingInventory)Crafts this recipe.booleanfits(int width, int height)Determines whether this recipe's pattern will fit into the available crafting area.DefaultedList<ItemStack>getRemainder(CraftingInventory craftingInventory)Returns the remaining stacks to be left in the crafting grid after crafting is complete.RecipeSerializer<?>getSerializer()booleanmatches(CraftingInventory craftingInventory, World world)Determines whether this recipe matches the contents currently placed inside the available crafting grid.Methods inherited from class net.minecraft.recipe.SpecialCraftingRecipe
getId, getOutput, isIgnoredInRecipeBookMethods 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, getGroup, getIngredients
-
Constructor Details
-
BannerDuplicateRecipe
-
-
Method Details
-
matches
Description copied from interface:RecipeDetermines whether this recipe matches the contents currently placed inside the available crafting grid. -
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.
- Returns:
- the resulting item stack
-
getRemainder
Description copied from interface:RecipeReturns the remaining stacks to be left in the crafting grid after crafting is complete. Should return the same number of items as the input grid contains in the same order they're expected to appear in that grid. -
getSerializer
-
fits
@Environment(CLIENT) public boolean fits(int width, int height)Determines whether this recipe's pattern will fit into the available crafting area.
-