Class ShapelessRecipeMixin

java.lang.Object
petrolpark.mc.library.mixin.ShapelessRecipeMixin
All Implemented Interfaces:
net.minecraft.world.item.crafting.Recipe<net.minecraft.world.item.crafting.CraftingInput>, IHandleFlagsMyselfRecipe<net.minecraft.world.item.crafting.CraftingInput>

public abstract class ShapelessRecipeMixin extends Object implements IHandleFlagsMyselfRecipe<net.minecraft.world.item.crafting.CraftingInput>
Allow Shapeless Recipes to propagate the Flags of the Ingredients to the result.
  • Field Summary

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

    CODEC, CONDITIONAL_CODEC, STREAM_CODEC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    areFlagsHandled(net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider registrie)
     
    net.minecraft.world.item.ItemStack
    petrolpark$propagateFlagsAndStartDecay(net.minecraft.world.item.ItemStack original, net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider registries)
     

    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.Recipe

    assemble, canCraftInDimensions, getGroup, getIngredients, getRemainingItems, getResultItem, getSerializer, getToastSymbol, getType, isIncomplete, isSpecial, matches, showNotification
  • Constructor Details

    • ShapelessRecipeMixin

      public ShapelessRecipeMixin()
  • Method Details

    • petrolpark$propagateFlagsAndStartDecay

      public net.minecraft.world.item.ItemStack petrolpark$propagateFlagsAndStartDecay(net.minecraft.world.item.ItemStack original, net.minecraft.world.item.crafting.CraftingInput input, net.minecraft.core.HolderLookup.Provider registries)
    • areFlagsHandled

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