public class IslandChangeSpawnerRatesEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandChangeSpawnerRatesEvent(SuperiorPlayer superiorPlayer,
Island island,
double spawnerRates)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
SuperiorPlayer |
getPlayer()
Get the player that changed the spawner-rates multiplier.
|
double |
getSpawnerRates()
Get the new spawner-rates multiplier of the island.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
void |
setSpawnerRates(double spawnerRates)
Set the new spawner-rates multiplier for the island.
|
getHandlerList, getHandlers, getIsland
public IslandChangeSpawnerRatesEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, double spawnerRates)
superiorPlayer
- The player that changed the spawner-rates multiplier of the island.
If set to null, it means the spawner-rates multiplier was changed via the console.island
- The island that the spawner-rates multiplier was changed for.spawnerRates
- The new spawner-rates multiplier of the island@Nullable public SuperiorPlayer getPlayer()
public double getSpawnerRates()
public void setSpawnerRates(double spawnerRates)
spawnerRates
- The spawner-rates multiplier to set.public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable