Interface PlayerEvent

All Superinterfaces:
EntityEvent, Event
All Known Subinterfaces:
PlayerInstanceEvent
All Known Implementing Classes:
AdvancementTabEvent, AsyncPlayerConfigurationEvent, AsyncPlayerPreLoginEvent, EditBookEvent, InventoryClickEvent, InventoryCloseEvent, InventoryOpenEvent, InventoryPreClickEvent, ItemDropEvent, ItemUpdateStateEvent, PickupExperienceEvent, PlayerBlockBreakEvent, PlayerBlockInteractEvent, PlayerBlockPlaceEvent, PlayerCancelDiggingEvent, PlayerChangeHeldSlotEvent, PlayerChatEvent, PlayerChunkLoadEvent, PlayerChunkUnloadEvent, PlayerCommandEvent, PlayerDeathEvent, PlayerDisconnectEvent, PlayerEatEvent, PlayerEntityInteractEvent, PlayerFinishDiggingEvent, PlayerGameModeChangeEvent, PlayerHandAnimationEvent, PlayerInventoryItemChangeEvent, PlayerItemAnimationEvent, PlayerMoveEvent, PlayerPacketEvent, PlayerPacketOutEvent, PlayerPluginMessageEvent, PlayerPreEatEvent, PlayerResourcePackStatusEvent, PlayerRespawnEvent, PlayerSettingsChangeEvent, PlayerSkinInitEvent, PlayerSpawnEvent, PlayerSpectateEvent, 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