Class AutoStoreItemEvent
java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.feature.autostore.event.AutoStoreItemEvent
A notification fired when AutoStore takes an item from a pickup or a drop.
It is delivered on the thread handling the operation, after the item is removed from its source.
-
Constructor Summary
ConstructorsConstructorDescriptionAutoStoreItemEvent(StockActor.Player actor, Location location, ItemStack item, @Nullable UUID sourceEntityId) -
Method Summary
Methods inherited from class BoxEvent
toDebugLog
-
Constructor Details
-
AutoStoreItemEvent
public AutoStoreItemEvent(StockActor.Player actor, Location location, ItemStack item, @Nullable @Nullable UUID sourceEntityId) - Parameters:
actor- the player associated with the itemlocation- the original pickup or drop locationitem- the item AutoStore tooksourceEntityId- the UUID of the item or arrow entity that was collected, ornullif the item was taken from a drop list without an entity
-
-
Method Details
-
getActor
-
getLocation
Returns a copy of the original pickup or drop location. -
getItem
Returns a copy of the item AutoStore took. -
getSourceEntityId
Returns the UUID of the collected item or arrow entity, ornullif there was no such entity.
-