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>
A storage change event.
This is thrown for either additions or deletions,
as identified by the change type.
-
Constructor Summary
ConstructorDescriptionStorageChangeEvent
(int channel, PrioritizedPartPos pos, IIngredientComponentStorageObservable.Change changeType, boolean completeChange, org.cyclops.cyclopscore.ingredient.collection.IIngredientCollection<T, M> instances, boolean initialChange) -
Method Summary
-
Constructor Details
-
StorageChangeEvent
public StorageChangeEvent(int channel, PrioritizedPartPos pos, IIngredientComponentStorageObservable.Change changeType, boolean completeChange, org.cyclops.cyclopscore.ingredient.collection.IIngredientCollection<T, M> instances, boolean initialChange)
-
-
Method Details
-
getChannel
public int getChannel() -
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
- Returns:
- The instances that were added or removed.
-
isInitialChange
public boolean isInitialChange()- Returns:
- If this change occurred during initialization of the observer.
-
toString
-
getDiff
- Returns:
- Get the collection diff from this event.
-