Interface EntityEvent

All Superinterfaces:
Event
All Known Subinterfaces:
EntityInstanceEvent, PlayerEvent, PlayerInstanceEvent
All Known Implementing Classes:
AddEntityToInstanceEvent, AdvancementTabEvent, AsyncPlayerConfigurationEvent, EditBookEvent, EntityAttackEvent, EntityDamageEvent, EntityDeathEvent, EntityDespawnEvent, EntityEquipEvent, EntityFireExtinguishEvent, EntityItemMergeEvent, EntityPotionAddEvent, EntityPotionRemoveEvent, EntitySetFireEvent, EntityShootEvent, EntitySpawnEvent, EntityTeleportEvent, 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, PlayerPacketOutEvent, PlayerPluginMessageEvent, PlayerPreEatEvent, PlayerResourcePackStatusEvent, PlayerRespawnEvent, PlayerSettingsChangeEvent, PlayerSkinInitEvent, PlayerSpawnEvent, PlayerSpectateEvent, PlayerStartDiggingEvent, PlayerStartFlyingEvent, PlayerStartFlyingWithElytraEvent, PlayerStartSneakingEvent, PlayerStartSprintingEvent, PlayerStopFlyingEvent, PlayerStopFlyingWithElytraEvent, PlayerStopSneakingEvent, PlayerStopSprintingEvent, PlayerSwapItemEvent, PlayerTickEndEvent, PlayerTickEvent, PlayerUseItemEvent, PlayerUseItemOnBlockEvent, ProjectileCollideWithBlockEvent, ProjectileCollideWithEntityEvent, ProjectileUncollideEvent, RemoveEntityFromInstanceEvent

public interface EntityEvent extends Event
Represents any event called on an Entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Entity
    Gets the entity of this event.
  • Method Details

    • getEntity

      @NotNull @NotNull Entity getEntity()
      Gets the entity of this event.
      Returns:
      the entity