Package net.minestom.server.event.trait
Interface EntityInstanceEvent
- All Superinterfaces:
EntityEvent
,Event
,InstanceEvent
- All Known Subinterfaces:
PlayerInstanceEvent
- All Known Implementing Classes:
AdvancementTabEvent
,EditBookEvent
,EntityAttackEvent
,EntityDamageEvent
,EntityDeathEvent
,EntityDespawnEvent
,EntityEquipEvent
,EntityFireExtinguishEvent
,EntityItemMergeEvent
,EntityPotionAddEvent
,EntityPotionRemoveEvent
,EntitySetFireEvent
,EntityShootEvent
,EntitySpawnEvent
,EntityTickEvent
,EntityVelocityEvent
,InventoryClickEvent
,InventoryCloseEvent
,InventoryOpenEvent
,InventoryPreClickEvent
,ItemDropEvent
,PickupExperienceEvent
,PickupItemEvent
,PlayerAnvilInputEvent
,PlayerBeginItemUseEvent
,PlayerBlockBreakEvent
,PlayerBlockInteractEvent
,PlayerBlockPlaceEvent
,PlayerCancelDiggingEvent
,PlayerCancelItemUseEvent
,PlayerChangeHeldSlotEvent
,PlayerChatEvent
,PlayerChunkLoadEvent
,PlayerChunkUnloadEvent
,PlayerCommandEvent
,PlayerDeathEvent
,PlayerDisconnectEvent
,PlayerEntityInteractEvent
,PlayerFinishDiggingEvent
,PlayerFinishItemUseEvent
,PlayerGameModeChangeEvent
,PlayerHandAnimationEvent
,PlayerMoveEvent
,PlayerPacketEvent
,PlayerPluginMessageEvent
,PlayerPreEatEvent
,PlayerSpawnEvent
,PlayerStartDiggingEvent
,PlayerStartFlyingEvent
,PlayerStartFlyingWithElytraEvent
,PlayerStartSneakingEvent
,PlayerStartSprintingEvent
,PlayerStopFlyingEvent
,PlayerStopFlyingWithElytraEvent
,PlayerStopSneakingEvent
,PlayerStopSprintingEvent
,PlayerSwapItemEvent
,PlayerTickEndEvent
,PlayerTickEvent
,PlayerUseItemEvent
,PlayerUseItemOnBlockEvent
,ProjectileCollideWithBlockEvent
,ProjectileCollideWithEntityEvent
,ProjectileUncollideEvent
,RemoveEntityFromInstanceEvent
Represents an
EntityEvent
which happen in Entity.getInstance()
.
Useful if you need to listen to entity events happening in its instance.
Be aware that the entity's instance must be non-null.
-
Method Summary
Methods inherited from interface net.minestom.server.event.trait.EntityEvent
getEntity
-
Method Details
-
getInstance
Description copied from interface:InstanceEvent
Gets the instance.- Specified by:
getInstance
in interfaceInstanceEvent
- Returns:
- instance
-