Class LootRefillEvent

java.lang.Object
org.bukkit.event.Event

public final class LootRefillEvent extends ZentrixGameEvent
Called after a loot refill started a new cycle for some of a match's pools, whether a phase's refill action or GameLootService#refill triggered it.

Refills are lazy: no container is touched now. Each container is filled again the next time a participant opens it, firing LootContainerFillEvent. Several refills before a container is opened collapse into the latest one.

Main thread; only fired while a listener is registered.

Since:
1.8.0
  • Constructor Details

    • LootRefillEvent

      public LootRefillEvent(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull Set<LootPool> pools, boolean replacing)
  • Method Details

    • getPools

      @NotNull public @NotNull Set<LootPool> getPools()
      The pools that started a new cycle.
    • isReplacing

      public boolean isReplacing()
      Whether containers are cleared before being filled again, rather than topped up.
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: ZentrixGameEvent
      Gets the handler list for this event.
      Overrides:
      getHandlers in class ZentrixGameEvent
      Returns:
      The handler list
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()