| Package | Description | 
|---|---|
| org.bukkit | 
 More generalized classes in the API. 
 | 
| org.bukkit.block | 
 Classes used to manipulate the voxels in a  
world,
 including special states. | 
| org.bukkit.entity | 
 Interfaces for non-voxel objects that can exist in a  
world, including all players, monsters, projectiles, etc. | 
| org.bukkit.event.world | |
| org.bukkit.generator | 
 Classes to facilitate  
world generation
 implementation. | 
| Modifier and Type | Method and Description | 
|---|---|
Chunk | 
Location.getChunk()
Gets the chunk at the represented location 
 | 
Chunk | 
World.getChunkAt(Block block)
 | 
Chunk | 
World.getChunkAt(int x,
          int z)
Gets the  
Chunk at the given coordinates | 
Chunk | 
World.getChunkAt(Location location)
 | 
default Chunk | 
World.getChunkAt(long chunkKey)
Gets the chunk at the specified chunk key, which is the X and Z packed into a long. 
 | 
Chunk[] | 
World.getLoadedChunks()
Gets an array of all loaded  
Chunks | 
| Modifier and Type | Method and Description | 
|---|---|
default CompletableFuture<Chunk> | 
World.getChunkAtAsync(Block block)
Requests a  
Chunk to be loaded at the given coordinates
 This method makes no guarantee on how fast the chunk will load,
 and will return the chunk to the callback at a later time. | 
default CompletableFuture<Chunk> | 
World.getChunkAtAsync(Block block,
               boolean gen)
Requests a  
Chunk to be loaded at the given coordinates
 This method makes no guarantee on how fast the chunk will load,
 and will return the chunk to the callback at a later time. | 
default CompletableFuture<Chunk> | 
World.getChunkAtAsync(int x,
               int z)
Requests a  
Chunk to be loaded at the given coordinates
 This method makes no guarantee on how fast the chunk will load,
 and will return the chunk to the callback at a later time. | 
CompletableFuture<Chunk> | 
World.getChunkAtAsync(int x,
               int z,
               boolean gen)
Requests a  
Chunk to be loaded at the given coordinates
 This method makes no guarantee on how fast the chunk will load,
 and will return the chunk to the callback at a later time. | 
default CompletableFuture<Chunk> | 
World.getChunkAtAsync(Location loc)
Requests a  
Chunk to be loaded at the given coordinates
 This method makes no guarantee on how fast the chunk will load,
 and will return the chunk to the callback at a later time. | 
default CompletableFuture<Chunk> | 
World.getChunkAtAsync(Location loc,
               boolean gen)
Requests a  
Chunk to be loaded at the given coordinates
 This method makes no guarantee on how fast the chunk will load,
 and will return the chunk to the callback at a later time. | 
Collection<Chunk> | 
World.getForceLoadedChunks()
Returns all force loaded chunks in this world. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
default void | 
World.ChunkLoadCallback.accept(Chunk chunk)
Deprecated.  
  | 
boolean | 
World.isChunkLoaded(Chunk chunk)
Checks if the specified  
Chunk is loaded | 
void | 
World.loadChunk(Chunk chunk)
Loads the specified  
Chunk | 
void | 
World.ChunkLoadCallback.onLoad(Chunk chunk)
Deprecated.  
  | 
boolean | 
World.unloadChunk(Chunk chunk)
Safely unloads and saves the  
Chunk at the specified coordinates | 
| Modifier and Type | Method and Description | 
|---|---|
default void | 
World.getChunkAtAsync(Block block,
               boolean gen,
               Consumer<Chunk> cb)
 | 
default void | 
World.getChunkAtAsync(Block block,
               Consumer<Chunk> cb)
 | 
default void | 
World.getChunkAtAsync(int x,
               int z,
               boolean gen,
               Consumer<Chunk> cb)
Requests a  
Chunk to be loaded at the given coordinates
 This method makes no guarantee on how fast the chunk will load,
 and will return the chunk to the callback at a later time. | 
default void | 
World.getChunkAtAsync(int x,
               int z,
               Consumer<Chunk> cb)
Requests a  
Chunk to be loaded at the given coordinates
 This method makes no guarantee on how fast the chunk will load,
 and will return the chunk to the callback at a later time. | 
default void | 
World.getChunkAtAsync(Location loc,
               boolean gen,
               Consumer<Chunk> cb)
 | 
default void | 
World.getChunkAtAsync(Location loc,
               Consumer<Chunk> cb)
 | 
| Modifier and Type | Method and Description | 
|---|---|
Chunk | 
BlockState.getChunk()
Gets the chunk which contains the block represented by this block state. 
 | 
Chunk | 
Block.getChunk()
Gets the chunk which contains this block 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Chunk | 
Entity.getChunk()
Gets the latest chunk an entity is currently or was in. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected Chunk | 
ChunkEvent.chunk  | 
| Modifier and Type | Method and Description | 
|---|---|
Chunk | 
ChunkEvent.getChunk()
Gets the chunk being loaded/unloaded 
 | 
| Constructor and Description | 
|---|
ChunkEvent(Chunk chunk)  | 
ChunkLoadEvent(Chunk chunk,
              boolean newChunk)  | 
ChunkPopulateEvent(Chunk chunk)  | 
ChunkUnloadEvent(Chunk chunk)  | 
ChunkUnloadEvent(Chunk chunk,
                boolean save)  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract void | 
BlockPopulator.populate(World world,
        Random random,
        Chunk source)
Populates an area of blocks at or around the given chunk. 
 | 
Copyright © 2022. All rights reserved.