Class PlayerEvent

java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.player.PlayerEvent
Direct Known Subclasses:
PlayerCollectItemInfoEvent, PlayerLoadEvent, PlayerStockHolderChangeEvent, PlayerUnloadEvent

public class PlayerEvent extends BoxEvent
A class that represents a BoxPlayer related event.
  • Constructor Details

    • PlayerEvent

      public PlayerEvent(@NotNull @NotNull BoxPlayer boxPlayer)
      The constructor of a PlayerEvent.
      Parameters:
      boxPlayer - the player of this event
  • Method Details

    • getBoxPlayer

      @NotNull public @NotNull BoxPlayer getBoxPlayer()
      Gets the player of this event.
      Returns:
      the player of this event
    • toDebugLog

      @NotNull public @NotNull String toDebugLog()
      Description copied from class: BoxEvent
      Creates the debug log from this event.
      Overrides:
      toDebugLog in class BoxEvent
      Returns:
      the debug log
    • toString

      public String toString()
      Overrides:
      toString in class Object