UNPKG

typesforbukkit

Version:

Types For Bukkit

20 lines (14 loc) 825 B
// API Link: https://tfb.neocities.org/1.16.5/org/bukkit/BlockChangeDelegate namespace org.bukkit { /** @description A delegate for handling block changes. This serves as a direct interface between generation algorithms in the server implementation and utilizing code */ export interface BlockChangeDelegate { /** @description Get the block data at the location */ getBlockData(x: int, y: int, z: int) : org.bukkit.block.data.BlockData; /** @description Gets the height of the world */ getHeight() : int; /** @description Checks if the specified block is empty (air) or not */ isEmpty(x: int, y: int, z: int) : boolean; /** @description Set a block data at the specified coordinates */ setBlockData(x: int, y: int, z: int, blockData: org.bukkit.block.data.BlockData) : boolean; } }