Class BoxCountCalculateEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.storage.BoxCountCalculateEvent
Direct Known Subclasses:
BoxCountCalculateEvent.Post, BoxCountCalculateEvent.Pre

public class BoxCountCalculateEvent extends net.neoforged.bus.api.Event
This event is fired when trying to calculate how many boxes a given target (UUID, typically player} has access to. If the box count is not overridden using the BoxCountCalculateEvent.Pre event then it will default to the value found in the storage.yml file.
No sub-events are cancellable as this information is important, and necessary.
  • Field Details

    • uuid

      protected final UUID uuid
    • boxCount

      protected int boxCount
  • Constructor Details

    • BoxCountCalculateEvent

      protected BoxCountCalculateEvent(UUID uuid, int boxCount)
  • Method Details

    • getUuid

      public UUID getUuid()
    • getBoxCount

      public int getBoxCount()
    • getPlayer

      @Nullable public net.minecraft.server.level.ServerPlayer getPlayer()