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
(@NotNull Player who, @NotNull PlayerResourcePackStatusEvent.Status resourcePackStatus) PlayerResourcePackStatusEvent
(Player who, PlayerResourcePackStatusEvent.Status resourcePackStatus, String hash) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
getHash()
Deprecated.Gets the status of this pack.Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerResourcePackStatusEvent
-
PlayerResourcePackStatusEvent
@Deprecated public PlayerResourcePackStatusEvent(Player who, PlayerResourcePackStatusEvent.Status resourcePackStatus, String hash) Deprecated.
-
-
Method Details
-
getHash
Deprecated. -
getStatus
Gets the status of this pack.- Returns:
- the current status
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-