Class MissingIngredients<T,M>
java.lang.Object
org.cyclops.integratedcrafting.core.MissingIngredients<T,M>
- Type Parameters:
T- The instance type.M- The matching condition parameter, may be Void.
A list with missing ingredients (non-slot-based).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA list of alternatives for the given element.static classA prototype with a missing quantity, together with the total requested quantity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>, MissingIngredients<?, ?>> deserialize(net.minecraft.nbt.CompoundTag tag) Deserialize ingredients from NBTbooleanstatic net.minecraft.nbt.CompoundTagserialize(Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?>, MissingIngredients<?, ?>> ingredients) Deserialize ingredients to NBT.toString()
-
Constructor Details
-
MissingIngredients
-
-
Method Details
-
getElements
-
equals
-
toString
-
serialize
public static net.minecraft.nbt.CompoundTag serialize(Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?, ?>, MissingIngredients<?, ?>> ingredients) Deserialize ingredients to NBT.- Parameters:
ingredients- Ingredients.- Returns:
- An NBT representation of the given ingredients.
-
deserialize
public static Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>, deserializeMissingIngredients<?, ?>> (net.minecraft.nbt.CompoundTag tag) throws IllegalArgumentException Deserialize ingredients from NBT- Parameters:
tag- An NBT tag.- Returns:
- A new mixed ingredients instance.
- Throws:
IllegalArgumentException- If the given tag is invalid or does not contain data on the given ingredients.
-