Class IngredientWithCount

java.lang.Object
team.lodestar.lodestone.systems.recipe.IngredientWithCount
All Implemented Interfaces:
IRecipeComponent

public class IngredientWithCount extends Object implements IRecipeComponent
  • Field Details

    • ingredient

      public final net.minecraft.world.item.crafting.Ingredient ingredient
    • count

      public final int count
  • Constructor Details

    • IngredientWithCount

      public IngredientWithCount(net.minecraft.world.item.crafting.Ingredient ingredient, int count)
  • Method Details

    • getStack

      public net.minecraft.world.item.ItemStack getStack()
      Specified by:
      getStack in interface IRecipeComponent
    • getStacks

      public List<net.minecraft.world.item.ItemStack> getStacks()
      Specified by:
      getStacks in interface IRecipeComponent
    • getItem

      public net.minecraft.world.item.Item getItem()
      Specified by:
      getItem in interface IRecipeComponent
    • getCount

      public int getCount()
      Specified by:
      getCount in interface IRecipeComponent
    • matches

      public boolean matches(net.minecraft.world.item.ItemStack stack)
      Specified by:
      matches in interface IRecipeComponent
    • read

      public static IngredientWithCount read(net.minecraft.network.FriendlyByteBuf buffer)
    • write

      public void write(net.minecraft.network.FriendlyByteBuf buffer)
    • deserialize

      public static IngredientWithCount deserialize(com.google.gson.JsonObject object)
    • serialize

      public com.google.gson.JsonObject serialize()