Package net.minestom.server.event.player
Class PlayerResourcePackStatusEvent
java.lang.Object
net.minestom.server.event.player.PlayerResourcePackStatusEvent
- All Implemented Interfaces:
Event
,EntityEvent
,PlayerEvent
Called when a player warns the server of a resource pack status.
-
Constructor Summary
ConstructorDescriptionPlayerResourcePackStatusEvent
(@NotNull Player player, @NotNull ResourcePackStatus status) -
Method Summary
Modifier and TypeMethodDescription@NotNull Player
Gets the player.@NotNull ResourcePackStatus
Gets the resource pack status.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.event.trait.PlayerEvent
getEntity
-
Constructor Details
-
PlayerResourcePackStatusEvent
public PlayerResourcePackStatusEvent(@NotNull @NotNull Player player, @NotNull @NotNull ResourcePackStatus status)
-
-
Method Details
-
getStatus
Gets the resource pack status.- Returns:
- the resource pack status
-
getPlayer
Description copied from interface:PlayerEvent
Gets the player.- Specified by:
getPlayer
in interfacePlayerEvent
- Returns:
- the player
-