Class IIngredientComponentStorageObservable.StorageChangeEvent<T,M>

java.lang.Object
org.cyclops.integrateddynamics.api.ingredient.IIngredientComponentStorageObservable.StorageChangeEvent<T,M>
Type Parameters:
T - The instance type.
M - The match condition type.
Enclosing interface:
IIngredientComponentStorageObservable<T,M>

public static class IIngredientComponentStorageObservable.StorageChangeEvent<T,M> extends Object
A storage change event. This is thrown for either additions or deletions, as identified by the change type.
  • Constructor Details

  • Method Details

    • getChannel

      public int getChannel()
    • getPos

      public PrioritizedPartPos getPos()
    • getChangeType

      Returns:
      The type of change.
    • isCompleteChange

      public boolean isCompleteChange()
      Returns:
      If the change is complete. In the case of additions, this means that the storage became completely full. In the case of deletions, this means that the storage became completely empty.
    • getInstances

      public org.cyclops.cyclopscore.ingredient.collection.IIngredientCollection<T,M> getInstances()
      Returns:
      The instances that were added or removed.
    • isInitialChange

      public boolean isInitialChange()
      Returns:
      If this change occurred during initialization of the observer.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDiff

      public org.cyclops.cyclopscore.ingredient.collection.diff.IngredientCollectionDiff<T,M> getDiff()
      Returns:
      Get the collection diff from this event.