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.

public class MissingIngredients<T,M> extends Object
A list with missing ingredients (non-slot-based).
  • Constructor Details

  • Method Details

    • getElements

      public List<MissingIngredients.Element<T,M>> getElements()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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<?,?>,MissingIngredients<?,?>> deserialize(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.