Class ItemStackFromIngredient

java.lang.Object
org.cyclops.cyclopscore.recipe.ItemStackFromIngredient

public class ItemStackFromIngredient extends Object
Helper class that can return a first item based on an ingredient. The first item is calculated lazily to be able to cope with late tag resolution in MC.
  • Constructor Details

    • ItemStackFromIngredient

      public ItemStackFromIngredient(List<String> modPriorities, String key, net.minecraft.world.item.crafting.Ingredient ingredient, int count)
  • Method Details

    • getIngredient

      public net.minecraft.world.item.crafting.Ingredient getIngredient()
    • getCount

      public int getCount()
    • getFirstItemStack

      public net.minecraft.world.item.ItemStack getFirstItemStack()
    • writeToPacket

      public void writeToPacket(net.minecraft.network.FriendlyByteBuf buf)
    • readFromPacket

      public static ItemStackFromIngredient readFromPacket(net.minecraft.network.FriendlyByteBuf buf)