Package org.cyclops.cyclopscore.recipe
Class ItemStackFromIngredient
java.lang.Object
org.cyclops.cyclopscore.recipe.ItemStackFromIngredient
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 Summary
ConstructorDescriptionItemStackFromIngredient
(List<String> modPriorities, String key, net.minecraft.world.item.crafting.Ingredient ingredient, int count) -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
net.minecraft.world.item.ItemStack
net.minecraft.world.item.crafting.Ingredient
static ItemStackFromIngredient
readFromPacket
(net.minecraft.network.FriendlyByteBuf buf) void
writeToPacket
(net.minecraft.network.FriendlyByteBuf buf)
-
Constructor Details
-
ItemStackFromIngredient
-
-
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
-