Interface PlayerEvent

All Superinterfaces:
EntityEvent, Event
All Known Subinterfaces:
PlayerInstanceEvent
All Known Implementing Classes:
AdvancementTabEvent, AsyncPlayerConfigurationEvent, EditBookEvent, InventoryClickEvent, InventoryCloseEvent, InventoryOpenEvent, InventoryPreClickEvent, ItemDropEvent, PickupExperienceEvent, 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

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