T - The instance type.M - The matching condition parameter, may be Void.public class MissingIngredients<T,M>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MissingIngredients.Element<T,M>
A list of alternatives for the given element.
|
static class |
MissingIngredients.PrototypedWithRequested<T,M>
A prototype with a missing quantity,
together with the total requested quantity.
|
| Constructor and Description |
|---|
MissingIngredients(java.util.List<MissingIngredients.Element<T,M>> elements) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,MissingIngredients<?,?>> |
deserialize(net.minecraft.nbt.CompoundNBT tag)
Deserialize ingredients from NBT
|
boolean |
equals(java.lang.Object obj) |
java.util.List<MissingIngredients.Element<T,M>> |
getElements() |
static net.minecraft.nbt.CompoundNBT |
serialize(java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,MissingIngredients<?,?>> ingredients)
Deserialize ingredients to NBT.
|
java.lang.String |
toString() |
public MissingIngredients(java.util.List<MissingIngredients.Element<T,M>> elements)
public java.util.List<MissingIngredients.Element<T,M>> getElements()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static net.minecraft.nbt.CompoundNBT serialize(java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,MissingIngredients<?,?>> ingredients)
ingredients - Ingredients.public static java.util.Map<org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<?,?>,MissingIngredients<?,?>> deserialize(net.minecraft.nbt.CompoundNBT tag) throws java.lang.IllegalArgumentException
tag - An NBT tag.java.lang.IllegalArgumentException - If the given tag is invalid or does not contain data on the given ingredients.