UNPKG

typesforbukkit

Version:

Types For Bukkit

55 lines (38 loc) 2.24 kB
// API Link: https://tfb.neocities.org/1.16.5/org/bukkit/ChunkSnapshot namespace org.bukkit { /** @description Represents a static, thread-safe snapshot of chunk of blocks. Purpose is to allow clean, efficient copy of a chunk data to be made, and then handed off for processing in another thread (e.g. map rendering) */ export interface ChunkSnapshot { /** @description Tests if this snapshot contains the specified block */ contains(block: org.bukkit.block.data.BlockData) : boolean; /** @deprecated biomes are now 3-dimensional */ getBiome(x: int, z: int) : org.bukkit.block.Biome; /** @description Get biome at given coordinates */ getBiome(x: int, y: int, z: int) : org.bukkit.block.Biome; /** @description Get block data for block at corresponding coordinate in the chunk */ getBlockData(x: int, y: int, z: int) : org.bukkit.block.data.BlockData; /** @description Get light level emitted by block at corresponding coordinate in the chunk */ getBlockEmittedLight(x: int, y: int, z: int) : int; /** @description Get sky light level for block at corresponding coordinate in the chunk */ getBlockSkyLight(x: int, y: int, z: int) : int; /** @description Get block type for block at corresponding coordinate in the chunk */ getBlockType(x: int, y: int, z: int) : org.bukkit.Material; /** @description Get world full time when chunk snapshot was captured */ getCaptureFullTime() : long; /** @deprecated Magic value */ getData(x: int, y: int, z: int) : int; /** @description Gets the highest non-air coordinate at the given coordinates */ getHighestBlockYAt(x: int, z: int) : int; /** @deprecated biomes are now 3-dimensional */ getRawBiomeTemperature(x: int, z: int) : double; /** @description Get raw biome temperature at given coordinates */ getRawBiomeTemperature(x: int, z: int) : double; /** @description Gets name of the world containing this chunk */ getWorldName() : String; /** @description Gets the X-coordinate of this chunk */ getX() : int; /** @description Gets the Z-coordinate of this chunk */ getZ() : int; /** @description Test if section is empty */ isSectionEmpty(sy: int) : boolean; } }