Class LootRefillEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
dev.itsharshxd.zentrix.api.events.loot.LootRefillEvent
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionLootRefillEvent(@NotNull ZentrixGame game, @NotNull Set<LootPool> pools, boolean replacing) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.getPools()The pools that started a new cycle.booleanWhether containers are cleared before being filled again, rather than topped up.Methods inherited from class dev.itsharshxd.zentrix.api.events.ZentrixGameEvent
getArenaName, getGame, getGameId, getGameState, getGameTypeName, getPlayerCount, getRuntimeId, getSourceArenaNameMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
LootRefillEvent
public LootRefillEvent(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull Set<LootPool> pools, boolean replacing)
-
-
Method Details
-
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:ZentrixGameEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixGameEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-