-
Method Summary
org.spongepowered.api.item.inventory.ItemStack
Get the ItemStack
that is the target of the event.
Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer>
Get the ServerPlayer
that is the source of the event.
Get the
Region
where the event occurred.
org.spongepowered.api.entity.Entity
Get the entity that is the target of the event.
org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary
Get the InteractItemEvent.Secondary
.
boolean
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.Event
cause, context, source
-
Method Details
-
getSource
org.spongepowered.api.entity.Entity getSource()
Get the entity that is the target of the event.
- Returns:
- entity
-
getItemStack
org.spongepowered.api.item.inventory.ItemStack getItemStack()
Get the ItemStack
that is the target of the event.
-
-
isAllow
boolean isAllow()
Get protect result.
-
getPlayer
Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer> getPlayer()
Get the ServerPlayer
that is the source of the event.
- Specified by:
getPlayer
in interface RegionMessageEvent
-
getSpongeEvent
org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary getSpongeEvent()
Get the InteractItemEvent.Secondary
.
- Specified by:
getSpongeEvent
in interface RegionWorldEvent