Class PlayerResourcePackStatusEventImpl
- java.lang.Object
-
- com.velocitypowered.api.event.player.PlayerResourcePackStatusEventImpl
-
- All Implemented Interfaces:
Event,PlayerResourcePackStatusEvent
public class PlayerResourcePackStatusEventImpl extends Object implements PlayerResourcePackStatusEvent
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/interfaces inherited from interface com.velocitypowered.api.event.player.PlayerResourcePackStatusEvent
PlayerResourcePackStatusEvent.Status
-
-
Constructor Summary
Constructors Constructor Description PlayerResourcePackStatusEventImpl(Player player, PlayerResourcePackStatusEvent.Status status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Playerplayer()Returns the player affected by the change in resource pack status.PlayerResourcePackStatusEvent.Statusstatus()Returns the new status for the resource pack.StringtoString()
-
-
-
Constructor Detail
-
PlayerResourcePackStatusEventImpl
public PlayerResourcePackStatusEventImpl(Player player, PlayerResourcePackStatusEvent.Status status)
-
-
Method Detail
-
player
public Player player()
Returns the player affected by the change in resource pack status.- Specified by:
playerin interfacePlayerResourcePackStatusEvent- Returns:
- the player
-
status
public PlayerResourcePackStatusEvent.Status status()
Returns the new status for the resource pack.- Specified by:
statusin interfacePlayerResourcePackStatusEvent- Returns:
- the new status
-
-