Class PlayerResourcePackStatusEvent
- java.lang.Object
-
- com.velocitypowered.api.event.player.PlayerResourcePackStatusEvent
-
public class PlayerResourcePackStatusEvent extends Object
This event is fired when the status of a resource pack sent to the player by the server is changed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlayerResourcePackStatusEvent.Status
Represents the possible statuses for the resource pack.
-
Constructor Summary
Constructors Constructor Description PlayerResourcePackStatusEvent(Player player, PlayerResourcePackStatusEvent.Status status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Player
getPlayer()
Returns the player affected by the change in resource pack status.PlayerResourcePackStatusEvent.Status
getStatus()
Returns the new status for the resource pack.String
toString()
-
-
-
Constructor Detail
-
PlayerResourcePackStatusEvent
public PlayerResourcePackStatusEvent(Player player, PlayerResourcePackStatusEvent.Status status)
-
-
Method Detail
-
getPlayer
public Player getPlayer()
Returns the player affected by the change in resource pack status.- Returns:
- the player
-
getStatus
public PlayerResourcePackStatusEvent.Status getStatus()
Returns the new status for the resource pack.- Returns:
- the new status
-
-