public class IslandGenerateBlockEvent extends IslandEvent implements org.bukkit.event.Cancellable
island
Constructor and Description |
---|
IslandGenerateBlockEvent(Island island,
org.bukkit.Location location,
Key block)
The constructor of the event.
|
Modifier and Type | Method and Description |
---|---|
Key |
getBlock()
Get the block that was generated.
|
org.bukkit.Location |
getLocation()
Get the location of the block.
|
boolean |
isCancelled() |
boolean |
isPlaceBlock()
Check whether the generated block should be set manually in the world.
|
void |
setBlock(Key block)
Set the block to be generated.
|
void |
setCancelled(boolean cancelled) |
void |
setPlaceBlock(boolean placeBlock)
Set whether the generated block should be set manually in the world.
|
getHandlerList, getHandlers, getIsland
public org.bukkit.Location getLocation()
public Key getBlock()
public void setBlock(Key block)
block
- The new block.public boolean isPlaceBlock()
public void setPlaceBlock(boolean placeBlock)
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled
in interface org.bukkit.event.Cancellable