Package org.bukkit.event.player
Class PlayerResourcePackStatusEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerResourcePackStatusEvent
Called when a player takes action on a resource pack request sent via
Player.setResourcePack(java.lang.String)
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Status of the resource pack.Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionPlayerResourcePackStatusEvent
(Player who, UUID id, PlayerResourcePackStatusEvent.Status resourcePackStatus) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
getID()
Gets the unique ID of this pack.Gets the status of this pack.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerResourcePackStatusEvent
public PlayerResourcePackStatusEvent(@NotNull Player who, @NotNull UUID id, @NotNull PlayerResourcePackStatusEvent.Status resourcePackStatus)
-
-
Method Details
-
getID
Gets the unique ID of this pack.- Returns:
- unique resource pack ID.
-
getStatus
Gets the status of this pack.- Returns:
- the current status
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-