Class StockIncreaseEvent

Direct Known Subclasses:
StockOverflowEvent

public class StockIncreaseEvent extends StockEvent
A StockEvent called when the stock is increased.
  • Constructor Details

    • StockIncreaseEvent

      public StockIncreaseEvent(@NotNull @NotNull StockHolder stockHolder, @NotNull @NotNull BoxItem item, int increments, int currentAmount, @NotNull @NotNull StockEvent.Cause cause)
      The constructor of StockIncreaseEvent.
      Parameters:
      stockHolder - the stockholder of the event
      item - the item of the stock
      increments - the amount of increased
      currentAmount - the current amount of the stock
      cause - the cause that indicates why this event was called
  • Method Details

    • getIncrements

      public int getIncrements()
      Gets the amount of increased.
      Returns:
      the amount of increased
    • toDebugLog

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

      public String toString()
      Overrides:
      toString in class StockHolderEvent