Class StockHolderEvent

java.lang.Object
net.okocraft.box.api.event.BoxEvent
net.okocraft.box.api.event.stockholder.StockHolderEvent
Direct Known Subclasses:
StockEvent, StockHolderLoadEvent, StockHolderResetEvent, StockHolderSaveEvent

public class StockHolderEvent extends BoxEvent
A class that represents a StockHolder related event.
  • Constructor Details

    • StockHolderEvent

      public StockHolderEvent(@NotNull @NotNull StockHolder stockHolder)
      The constructor of StockHolderEvent.
      Parameters:
      stockHolder - the stockholder of the event
  • Method Details

    • getStockHolder

      @NotNull public @NotNull StockHolder getStockHolder()
      Gets the stockholder.
      Returns:
      the stockholder
    • 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