Class IngredientWithCount
java.lang.Object
team.lodestar.lodestone.systems.recipe.IngredientWithCount
- All Implemented Interfaces:
IRecipeComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intfinal net.minecraft.world.item.crafting.Ingredient -
Constructor Summary
ConstructorsConstructorDescriptionIngredientWithCount(net.minecraft.world.item.crafting.Ingredient ingredient, int count) -
Method Summary
Modifier and TypeMethodDescriptionstatic IngredientWithCountdeserialize(com.google.gson.JsonObject object) intgetCount()net.minecraft.world.item.ItemgetItem()net.minecraft.world.item.ItemStackgetStack()List<net.minecraft.world.item.ItemStack>booleanmatches(net.minecraft.world.item.ItemStack stack) static IngredientWithCountread(net.minecraft.network.FriendlyByteBuf buffer) com.google.gson.JsonObjectvoidwrite(net.minecraft.network.FriendlyByteBuf buffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface team.lodestar.lodestone.systems.recipe.IRecipeComponent
isValid
-
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:
getStackin interfaceIRecipeComponent
-
getStacks
- Specified by:
getStacksin interfaceIRecipeComponent
-
getItem
public net.minecraft.world.item.Item getItem()- Specified by:
getItemin interfaceIRecipeComponent
-
getCount
public int getCount()- Specified by:
getCountin interfaceIRecipeComponent
-
matches
public boolean matches(net.minecraft.world.item.ItemStack stack) - Specified by:
matchesin interfaceIRecipeComponent
-
read
-
write
public void write(net.minecraft.network.FriendlyByteBuf buffer) -
deserialize
-
serialize
public com.google.gson.JsonObject serialize()
-