Package net.minestom.server.event.trait
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
Represents any event called on a
Player
.-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull Player
ReturnsgetPlayer()
.@NotNull Player
Gets the player.
-
Method Details
-
getPlayer
Gets the player.- Returns:
- the player
-
getEntity
ReturnsgetPlayer()
.- Specified by:
getEntity
in interfaceEntityEvent
- Returns:
- the entity
-