Interface PlayerEvent

All Superinterfaces:
EntityEvent, Event
All Known Subinterfaces:
PlayerInstanceEvent
All Known Implementing Classes:
AdvancementTabEvent, AsyncPlayerPreLoginEvent, EditBookEvent, InventoryClickEvent, InventoryCloseEvent, InventoryOpenEvent, InventoryPreClickEvent, ItemDropEvent, ItemUpdateStateEvent, PickupExperienceEvent, PlayerBlockBreakEvent, PlayerBlockInteractEvent, PlayerBlockPlaceEvent, PlayerChangeHeldSlotEvent, PlayerChatEvent, PlayerChunkLoadEvent, PlayerChunkUnloadEvent, PlayerCommandEvent, PlayerDeathEvent, PlayerDisconnectEvent, PlayerEatEvent, PlayerEntityInteractEvent, PlayerHandAnimationEvent, PlayerInventoryItemChangeEvent, PlayerItemAnimationEvent, PlayerLoginEvent, PlayerMoveEvent, PlayerPacketEvent, PlayerPacketOutEvent, PlayerPluginMessageEvent, PlayerPreEatEvent, PlayerResourcePackStatusEvent, PlayerRespawnEvent, PlayerSettingsChangeEvent, PlayerSkinInitEvent, PlayerSpawnEvent, PlayerStartDiggingEvent, PlayerStartFlyingEvent, PlayerStartFlyingWithElytraEvent, PlayerStartSneakingEvent, PlayerStartSprintingEvent, PlayerStopFlyingEvent, PlayerStopFlyingWithElytraEvent, PlayerStopSneakingEvent, PlayerStopSprintingEvent, PlayerSwapItemEvent, PlayerTickEvent, PlayerUseItemEvent, PlayerUseItemOnBlockEvent

public interface PlayerEvent extends EntityEvent
Represents any event called on a Player.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NotNull Player
    Returns getPlayer().
    @NotNull Player
    Gets the player.
  • Method Details

    • getPlayer

      @NotNull @NotNull Player getPlayer()
      Gets the player.
      Returns:
      the player
    • getEntity

      @NotNull default @NotNull Player getEntity()
      Returns getPlayer().
      Specified by:
      getEntity in interface EntityEvent
      Returns:
      the entity