Class CraftingHelper

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

public class CraftingHelper extends Object
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • CRAFTHELPER

      private static final org.apache.logging.log4j.Marker CRAFTHELPER
    • GSON

      private static com.google.gson.Gson GSON
    • EMPTY_RECIPE

      public static final Recipe<?> EMPTY_RECIPE
  • 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)