typesforbukkit
Version:
Types For Bukkit
72 lines (50 loc) • 2.86 kB
text/typescript
// API Link: https://tfb.neocities.org/1.16.5/org/bukkit/Chunk
namespace org.bukkit {
/** @description Represents a chunk of blocks */
export interface Chunk extends org.bukkit.persistence.PersistentDataHolder {
/** @description Adds a plugin ticket for this chunk, loading this chunk if it is not already loaded */
addPluginChunkTicket(plugin: org.bukkit.plugin.Plugin) : boolean;
/** @description Tests if this chunk contains the specified block */
contains(block: org.bukkit.block.data.BlockData) : boolean;
/** @description Gets a block from this chunk */
getBlock(x: int, y: int, z: int) : org.bukkit.block.Block;
/** @description Capture thread-safe read-only snapshot of chunk data */
getChunkSnapshot() : org.bukkit.ChunkSnapshot;
/** @description Capture thread-safe read-only snapshot of chunk data */
getChunkSnapshot(includeMaxBlocky: boolean, includeBiome: boolean, includeBiomeTempRain: boolean) : org.bukkit.ChunkSnapshot;
/** @description Get a list of all entities in the chunk */
getEntities() : org.bukkit.entity.Entity[];
/** @description Gets the amount of time in ticks that this chunk has been inhabited */
getInhabitedTime() : long;
/** @description Retrieves a collection specifying which plugins have tickets for this chunk */
getPluginChunkTickets() : java.util.Collection<org.bukkit.plugin.Plugin>;
/** @description Get a list of all tile entities in the chunk */
getTileEntities() : org.bukkit.block.BlockState[];
/** @description Gets the world containing this chunk */
getWorld() : org.bukkit.World;
/** @description Gets the X-coordinate of this chunk */
getX() : int;
/** @description Gets the Z-coordinate of this chunk */
getZ() : int;
/** @description Gets whether the chunk at the specified chunk coordinates is force loaded */
isForceLoaded() : boolean;
/** @description Checks if the chunk is loaded */
isLoaded() : boolean;
/** @description Checks if this chunk can spawn slimes without being a swamp biome */
isSlimeChunk() : boolean;
/** @description Loads the chunk */
load() : boolean;
/** @description Loads the chunk */
load(generate: boolean) : boolean;
/** @description Removes the specified plugin's ticket for this chunk */
removePluginChunkTicket(plugin: org.bukkit.plugin.Plugin) : boolean;
/** @description Sets whether the chunk at the specified chunk coordinates is force loaded */
setForceLoaded(forced: boolean) : void;
/** @description Sets the amount of time in ticks that this chunk has been inhabited */
setInhabitedTime(ticks: long) : void;
/** @description Unloads and optionally saves the Chunk */
unload() : boolean;
/** @description Unloads and optionally saves the Chunk */
unload(save: boolean) : boolean;
}
}