Interface EntityInstanceEvent

All Superinterfaces:
EntityEvent, Event, InstanceEvent
All Known Subinterfaces:
PlayerInstanceEvent
All Known Implementing Classes:
AdvancementTabEvent, EditBookEvent, EntityAttackEvent, EntityDamageEvent, EntityDeathEvent, EntityEquipEvent, EntityFireEvent, EntityItemMergeEvent, EntityPotionAddEvent, EntityPotionRemoveEvent, EntityShootEvent, EntitySpawnEvent, EntityTickEvent, EntityVelocityEvent, InventoryClickEvent, InventoryCloseEvent, InventoryOpenEvent, InventoryPreClickEvent, ItemDropEvent, ItemUpdateStateEvent, PickupExperienceEvent, PickupItemEvent, PlayerBlockBreakEvent, PlayerBlockInteractEvent, PlayerBlockPlaceEvent, PlayerChangeHeldSlotEvent, PlayerChatEvent, PlayerChunkLoadEvent, PlayerChunkUnloadEvent, PlayerCommandEvent, PlayerDeathEvent, PlayerDisconnectEvent, PlayerEatEvent, PlayerEntityInteractEvent, PlayerHandAnimationEvent, PlayerInventoryItemChangeEvent, PlayerItemAnimationEvent, PlayerMoveEvent, PlayerPacketEvent, PlayerPluginMessageEvent, PlayerPreEatEvent, PlayerStartDiggingEvent, PlayerStartFlyingEvent, PlayerStartFlyingWithElytraEvent, PlayerStartSneakingEvent, PlayerStartSprintingEvent, PlayerStopFlyingEvent, PlayerStopFlyingWithElytraEvent, PlayerStopSneakingEvent, PlayerStopSprintingEvent, PlayerSwapItemEvent, PlayerTickEvent, PlayerUseItemEvent, PlayerUseItemOnBlockEvent, ProjectileCollideWithBlockEvent, ProjectileCollideWithEntityEvent, ProjectileUncollideEvent, RemoveEntityFromInstanceEvent

@Internal @Experimental public interface EntityInstanceEvent extends EntityEvent, InstanceEvent
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

    Modifier and Type
    Method
    Description
    default @NotNull Instance
    Gets the instance.

    Methods inherited from interface net.minestom.server.event.trait.EntityEvent

    getEntity