Package | Description |
---|---|
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.block |
Classes used to manipulate the voxels in a
world ,
including special states. |
org.bukkit.event.world | |
org.bukkit.generator |
Classes to facilitate
world generation
implementation. |
Modifier and Type | Method and Description |
---|---|
@NotNull Chunk |
Location.getChunk()
Gets the chunk at the represented location
|
@NotNull Chunk |
Location.getChunk()
Gets the chunk at the represented location
|
@NotNull Chunk |
World.getChunkAt(@NotNull Block block)
|
@NotNull Chunk |
World.getChunkAt(@NotNull Block block)
|
@NotNull Chunk |
World.getChunkAt(int x,
int z)
Gets the
Chunk at the given coordinates |
@NotNull Chunk |
World.getChunkAt(int x,
int z)
Gets the
Chunk at the given coordinates |
@NotNull Chunk |
World.getChunkAt(@NotNull Location location)
|
@NotNull Chunk |
World.getChunkAt(@NotNull Location location)
|
@NotNull Chunk[] |
World.getLoadedChunks()
Gets an array of all loaded
Chunk s |
@NotNull Chunk[] |
World.getLoadedChunks()
Gets an array of all loaded
Chunk s |
Modifier and Type | Method and Description |
---|---|
boolean |
World.isChunkLoaded(@NotNull Chunk chunk)
Checks if the specified
Chunk is loaded |
boolean |
World.isChunkLoaded(@NotNull Chunk chunk)
Checks if the specified
Chunk is loaded |
void |
World.loadChunk(@NotNull Chunk chunk)
Loads the specified
Chunk . |
void |
World.loadChunk(@NotNull Chunk chunk)
Loads the specified
Chunk . |
boolean |
World.unloadChunk(@NotNull Chunk chunk)
Safely unloads and saves the
Chunk at the specified coordinates
This method is analogous to World.unloadChunk(int, int, boolean)
where save is true. |
boolean |
World.unloadChunk(@NotNull Chunk chunk)
Safely unloads and saves the
Chunk at the specified coordinates
This method is analogous to World.unloadChunk(int, int, boolean)
where save is true. |
Modifier and Type | Method and Description |
---|---|
@NotNull Chunk |
BlockState.getChunk()
Gets the chunk which contains the block represented by this block state.
|
@NotNull Chunk |
Block.getChunk()
Gets the chunk which contains this block
|
@NotNull Chunk |
Block.getChunk()
Gets the chunk which contains this block
|
@NotNull Chunk |
BlockState.getChunk()
Gets the chunk which contains the block represented by this block state.
|
Modifier and Type | Field and Description |
---|---|
protected Chunk |
ChunkEvent.chunk |
protected Chunk |
ChunkEvent.chunk |
Modifier and Type | Method and Description |
---|---|
@NotNull Chunk |
ChunkEvent.getChunk()
Gets the chunk being loaded/unloaded
|
@NotNull Chunk |
ChunkEvent.getChunk()
Gets the chunk being loaded/unloaded
|
Constructor and Description |
---|
ChunkEvent(@NotNull Chunk chunk) |
ChunkEvent(@NotNull Chunk chunk) |
ChunkLoadEvent(@NotNull Chunk chunk,
boolean newChunk) |
ChunkLoadEvent(@NotNull Chunk chunk,
boolean newChunk) |
ChunkPopulateEvent(@NotNull Chunk chunk) |
ChunkPopulateEvent(@NotNull Chunk chunk) |
ChunkUnloadEvent(@NotNull Chunk chunk) |
ChunkUnloadEvent(@NotNull Chunk chunk) |
ChunkUnloadEvent(@NotNull Chunk chunk,
boolean save) |
ChunkUnloadEvent(@NotNull Chunk chunk,
boolean save) |
Modifier and Type | Method and Description |
---|---|
abstract void |
BlockPopulator.populate(@NotNull World world,
@NotNull Random random,
@NotNull Chunk source)
Populates an area of blocks at or around the given chunk.
|
abstract void |
BlockPopulator.populate(@NotNull World world,
@NotNull Random random,
@NotNull Chunk source)
Populates an area of blocks at or around the given chunk.
|
Copyright © 2022. All rights reserved.