public class IslandClearGeneratorRatesEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandClearGeneratorRatesEvent(SuperiorPlayer superiorPlayer,
Island island,
org.bukkit.World.Environment environment)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
org.bukkit.World.Environment |
getEnvironment()
Get the environment of the world that the rates were cleared for.
|
SuperiorPlayer |
getPlayer()
Get the player that cleared the generator-rates.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandClearGeneratorRatesEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, org.bukkit.World.Environment environment)
superiorPlayer
- The player that cleared the generator-rates of an island.
If set to null, it means the rates were cleared via the console.island
- The island that the generator-rates were cleared for.environment
- The environment of the world that the rates were cleared for.@Nullable public SuperiorPlayer getPlayer()
public org.bukkit.World.Environment getEnvironment()
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable