Class CombineFlaggedItemsRecipe

java.lang.Object
net.minecraft.world.item.crafting.CustomRecipe
petrolpark.mc.library.core.flags.recipe.CombineFlaggedItemsRecipe
All Implemented Interfaces:
net.minecraft.world.item.crafting.CraftingRecipe, net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>, IHandleFlagsMyselfRecipe<net.minecraft.world.item.crafting.CraftingInput>

@ParametersAreNonnullByDefault public class CombineFlaggedItemsRecipe extends net.minecraft.world.item.crafting.CustomRecipe implements IHandleFlagsMyselfRecipe<net.minecraft.world.item.crafting.CraftingInput>
  • Field Summary

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

    CODEC, CONDITIONAL_CODEC, STREAM_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
    CombineFlaggedItemsRecipe(net.minecraft.world.item.crafting.CraftingBookCategory category)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    areFlagsHandled(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider registries)
     
    net.minecraft.world.item.ItemStack
    assemble(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider registries)
     
    boolean
    canCraftInDimensions(int width, int height)
     
    net.minecraft.world.item.crafting.RecipeSerializer<CombineFlaggedItemsRecipe>
     
    boolean
    matches(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.world.level.Level level)
     

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

    category, getResultItem, 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, getRemainingItems, getResultItem, getToastSymbol, isIncomplete, isSpecial, showNotification
  • Constructor Details

    • CombineFlaggedItemsRecipe

      public CombineFlaggedItemsRecipe(net.minecraft.world.item.crafting.CraftingBookCategory category)
  • Method Details

    • matches

      public boolean matches(net.minecraft.world.item.crafting.CraftingInput input, @Nonnull net.minecraft.world.level.Level level)
      Specified by:
      matches in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
    • assemble

      public net.minecraft.world.item.ItemStack assemble(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      assemble in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
    • canCraftInDimensions

      public boolean canCraftInDimensions(int width, int height)
      Specified by:
      canCraftInDimensions in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
    • getSerializer

      public net.minecraft.world.item.crafting.RecipeSerializer<CombineFlaggedItemsRecipe> getSerializer()
      Specified by:
      getSerializer in interface net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>
    • areFlagsHandled

      public boolean areFlagsHandled(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider registries)
      Specified by:
      areFlagsHandled in interface IHandleFlagsMyselfRecipe<net.minecraft.world.item.crafting.CraftingInput>