Class CompatIngredientValue

java.lang.Object
at.petrak.hexcasting.datagen.recipe.builders.CompatIngredientValue
All Implemented Interfaces:
net.minecraft.world.item.crafting.Ingredient.Value

public class CompatIngredientValue extends Object implements net.minecraft.world.item.crafting.Ingredient.Value
  • Field Details

    • item

      public final String item
  • Constructor Details

    • CompatIngredientValue

      public CompatIngredientValue(String name)
  • Method Details

    • getItems

      @NotNull public @NotNull Collection<net.minecraft.world.item.ItemStack> getItems()
      Specified by:
      getItems in interface net.minecraft.world.item.crafting.Ingredient.Value
    • serialize

      @NotNull public @NotNull com.google.gson.JsonObject serialize()
      Specified by:
      serialize in interface net.minecraft.world.item.crafting.Ingredient.Value
    • of

      public static net.minecraft.world.item.crafting.Ingredient of(String itemName)