Class StockOverflowEvent


public class StockOverflowEvent extends StockIncreaseEvent
A StockEvent called when the amount of stock exceeds Integer.MAX_VALUE.
  • Constructor Details

    • StockOverflowEvent

      public StockOverflowEvent(@NotNull @NotNull StockHolder stockHolder, @NotNull @NotNull BoxItem item, int increments, int excess, @NotNull @NotNull StockEvent.Cause cause)
      The constructor of StockOverflowEvent.
      Parameters:
      stockHolder - the StockHolder of this event
      item - the item that has overflowed the amount of stock
      increments - the amount of increased (excess is not included)
      excess - the amount exceeding Integer.MAX_VALUE
      cause - the cause that indicates why this event was called
  • Method Details