Package org.bukkit
Interface BlockChangeDelegate
-
public interface BlockChangeDelegateA delegate for handling block changes. This serves as a direct interface between generation algorithms in the server implementation and utilizing code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockDatagetBlockData(int x, int y, int z)Get the block data at the location.intgetHeight()Gets the height of the world.booleanisEmpty(int x, int y, int z)Checks if the specified block is empty (air) or not.booleansetBlockData(int x, int y, int z, BlockData blockData)Set a block data at the specified coordinates.
-
-
-
Method Detail
-
setBlockData
boolean setBlockData(int x, int y, int z, @NotNull BlockData blockData)Set a block data at the specified coordinates.- Parameters:
x- X coordinatey- Y coordinatez- Z coordinateblockData- Block data- Returns:
- true if the block was set successfully
-
getBlockData
@NotNull BlockData getBlockData(int x, int y, int z)
Get the block data at the location.- Parameters:
x- X coordinatey- Y coordinatez- Z coordinate- Returns:
- The block data
-
getHeight
int getHeight()
Gets the height of the world.- Returns:
- Height of the world
-
isEmpty
boolean isEmpty(int x, int y, int z)Checks if the specified block is empty (air) or not.- Parameters:
x- X coordinatey- Y coordinatez- Z coordinate- Returns:
- True if the block is considered empty.
-
-