Class PlayerResourcePackStatusEvent

java.lang.Object
net.minestom.server.event.player.PlayerResourcePackStatusEvent
All Implemented Interfaces:
Event, EntityEvent, PlayerEvent

public class PlayerResourcePackStatusEvent extends Object implements PlayerEvent
Called when a player warns the server of a resource pack status.
  • Constructor Details

    • PlayerResourcePackStatusEvent

      public PlayerResourcePackStatusEvent(@NotNull @NotNull Player player, @NotNull @NotNull ResourcePackStatus status)
  • Method Details

    • getStatus

      @NotNull public @NotNull ResourcePackStatus getStatus()
      Gets the resource pack status.
      Returns:
      the resource pack status
    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Description copied from interface: PlayerEvent
      Gets the player.
      Specified by:
      getPlayer in interface PlayerEvent
      Returns:
      the player