public class IslandRemoveGeneratorRateEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandRemoveGeneratorRateEvent(SuperiorPlayer superiorPlayer,
Island island,
Key block,
org.bukkit.World.Environment environment)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
Key |
getBlock()
Get the block that the generator-rate was removed for.
|
org.bukkit.World.Environment |
getEnvironment()
Get the environment of the world that the rate was removed for.
|
SuperiorPlayer |
getPlayer()
Get the player that removed the generator-rate.
|
boolean |
isCancelled() |
void |
setCancelled(boolean cancelled) |
getHandlerList, getHandlers, getIsland
public IslandRemoveGeneratorRateEvent(@Nullable SuperiorPlayer superiorPlayer, Island island, Key block, org.bukkit.World.Environment environment)
superiorPlayer
- The player that removed the generator-rate of an island.
If set to null, it means the rate was removed via the console.island
- The island that the generator-rate was removed for.block
- The block that the rate was removed for.environment
- The environment of the world that the rate was removed for.@Nullable public SuperiorPlayer getPlayer()
public Key getBlock()
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