Class RecipeBroomPartCombination

java.lang.Object
net.minecraft.world.item.crafting.CustomRecipe
org.cyclops.evilcraft.core.recipe.type.RecipeBroomPartCombination
All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>

public class RecipeBroomPartCombination extends net.minecraft.world.item.crafting.CustomRecipe
Recipe for combining broom parts to build a broom.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecipeBroomPartCombination(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.CraftingBookCategory category)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.inventory.CraftingContainer grid)
     
    boolean
    canCraftInDimensions(int width, int height)
     
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
    getRemainingItems(net.minecraft.world.inventory.CraftingContainer inventory)
     
    protected org.apache.commons.lang3.tuple.Pair<net.minecraft.world.item.ItemStack,List<net.minecraft.world.item.ItemStack>>
    getResult(net.minecraft.world.inventory.CraftingContainer grid)
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.world.item.crafting.RecipeSerializer<?>
     
     
    boolean
    matches(net.minecraft.world.inventory.CraftingContainer grid, net.minecraft.world.level.Level world)
     

    Methods inherited from class net.minecraft.world.item.crafting.CustomRecipe

    category, getId, isSpecial

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.item.crafting.CraftingRecipe

    getType

    Methods inherited from interface net.minecraft.world.item.crafting.Recipe

    getGroup, getIngredients, getToastSymbol, isIncomplete
  • Constructor Details

    • RecipeBroomPartCombination

      public RecipeBroomPartCombination(net.minecraft.resources.ResourceLocation id, net.minecraft.world.item.crafting.CraftingBookCategory category)
  • Method Details

    • matches

      public boolean matches(net.minecraft.world.inventory.CraftingContainer grid, net.minecraft.world.level.Level world)
    • getResultItem

      public net.minecraft.world.item.ItemStack getResultItem()
      Specified by:
      getResultItem in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.inventory.CraftingContainer>
      Overrides:
      getResultItem in class net.minecraft.world.item.crafting.CustomRecipe
    • getRemainingItems

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.inventory.CraftingContainer inventory)
    • indexifyParts

      protected Map<IBroomPart.BroomPartType,IBroomPart> indexifyParts(Collection<IBroomPart> parts)
    • getResult

      protected org.apache.commons.lang3.tuple.Pair<net.minecraft.world.item.ItemStack,List<net.minecraft.world.item.ItemStack>> getResult(net.minecraft.world.inventory.CraftingContainer grid)
    • assemble

      public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.inventory.CraftingContainer grid)
    • canCraftInDimensions

      public boolean canCraftInDimensions(int width, int height)
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<?> getSerializer()