Package net.minestom.server.event.trait
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
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
-