Class CraftingHelper

java.lang.Object
net.neoforged.neoforge.common.crafting.CraftingHelper

public class CraftingHelper extends Object
  • Field Details

    • TAG_CODEC

      public static final com.mojang.serialization.Codec<CompoundTag> TAG_CODEC
  • Constructor Details

    • CraftingHelper

      public CraftingHelper()
  • Method Details

    • smeltingResultCodec

      @Internal public static com.mojang.serialization.Codec<ItemStack> smeltingResultCodec()
    • getTagForWriting

      @Nullable public static @Nullable CompoundTag getTagForWriting(ItemStack stack)
    • makeIngredientCodec

      @Internal public static com.mojang.serialization.Codec<Ingredient> makeIngredientCodec(boolean allowEmpty, com.mojang.serialization.Codec<Ingredient> vanillaCodec)
    • makeIngredientCodec0

      private static com.mojang.serialization.Codec<Ingredient> makeIngredientCodec0(boolean allowEmpty, com.mojang.serialization.Codec<Ingredient> vanillaCodec)