Uses of Interface
org.bukkit.Chunk
Packages that use Chunk
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Classes to facilitate
world
generation
implementation.-
Uses of Chunk in io.papermc.paper.event.packet
Constructors in io.papermc.paper.event.packet with parameters of type ChunkModifierConstructorDescriptionPlayerChunkLoadEvent
(Chunk chunk, Player player) PlayerChunkUnloadEvent
(Chunk chunk, Player player) -
Uses of Chunk in org.bukkit
Methods in org.bukkit that return ChunkModifier and TypeMethodDescription@NotNull Chunk
Location.getChunk()
Gets the chunk at the represented location@NotNull Chunk
World.getChunkAt
(int x, int z) Gets theChunk
at the given coordinates@NotNull Chunk
World.getChunkAt
(int x, int z, boolean generate) Gets theChunk
at the given coordinatesdefault @NotNull Chunk
World.getChunkAt
(long chunkKey) Gets the chunk at the specified chunk key, which is the X and Z packed into a long.default @NotNull Chunk
World.getChunkAt
(long chunkKey, boolean generate) Gets the chunk at the specified chunk key, which is the X and Z packed into a long.default @NotNull Chunk
World.getChunkAt
(@NotNull Location location) @NotNull Chunk
World.getChunkAt
(@NotNull Block block) @NotNull Chunk @NotNull []
World.getLoadedChunks()
Gets an array of all loadedChunk
sMethods in org.bukkit that return types with arguments of type ChunkModifier and TypeMethodDescriptiondefault CompletableFuture
<Chunk> World.getChunkAtAsync
(int x, int z) Requests aChunk
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, boolean gen) Requests aChunk
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, boolean gen, boolean urgent) Requests aChunk
to be loaded at the given coordinates.default CompletableFuture
<Chunk> World.getChunkAtAsync
(@NotNull Location loc) Requests aChunk
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
(@NotNull Location loc, boolean gen) Requests aChunk
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
(@NotNull Block block) Requests aChunk
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
(@NotNull Block block, boolean gen) Requests aChunk
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.getChunkAtAsyncUrgently
(int x, int z) Requests aChunk
to be loaded at the given coordinatesdefault CompletableFuture
<Chunk> World.getChunkAtAsyncUrgently
(@NotNull Location loc) Requests aChunk
to be loaded at the given coordinatesdefault CompletableFuture
<Chunk> World.getChunkAtAsyncUrgently
(@NotNull Location loc, boolean gen) Requests aChunk
to be loaded at the given coordinatesdefault CompletableFuture
<Chunk> World.getChunkAtAsyncUrgently
(@NotNull Block block) Requests aChunk
to be loaded at the given coordinatesdefault CompletableFuture
<Chunk> World.getChunkAtAsyncUrgently
(@NotNull Block block, boolean gen) Requests aChunk
to be loaded at the given coordinates@NotNull Collection
<Chunk> World.getForceLoadedChunks()
Returns all force loaded chunks in this world.@NotNull Collection
<Chunk> World.getIntersectingChunks
(@NotNull BoundingBox box) Gets all Chunks intersecting the given BoundingBox.@NotNull Map
<Plugin, Collection<Chunk>> World.getPluginChunkTickets()
Returns a map of which plugins have tickets for what chunks.Methods in org.bukkit with parameters of type ChunkModifier and TypeMethodDescriptiondefault void
Deprecated.@NotNull Collection
<Player> World.getPlayersSeeingChunk
(@NotNull Chunk chunk) Get a list of all players who are can view the specified chunk from their clientboolean
World.isChunkLoaded
(@NotNull Chunk chunk) Checks if the specifiedChunk
is loadedvoid
Loads the specifiedChunk
.void
Deprecated.default boolean
World.unloadChunk
(@NotNull Chunk chunk) Safely unloads and saves theChunk
at the specified coordinatesMethod parameters in org.bukkit with type arguments of type ChunkModifier and TypeMethodDescriptionvoid
World.getChunkAtAsync
(int x, int z, boolean gen, boolean urgent, @NotNull Consumer<? super Chunk> cb) Requests aChunk
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, boolean gen, @NotNull Consumer<? super Chunk> cb) Requests aChunk
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, @NotNull Consumer<? super Chunk> cb) Requests aChunk
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
(@NotNull Location loc, boolean gen, @NotNull Consumer<? super Chunk> cb) default void
World.getChunkAtAsync
(@NotNull Location loc, @NotNull Consumer<? super Chunk> cb) default void
World.getChunkAtAsync
(@NotNull Block block, boolean gen, @NotNull Consumer<? super Chunk> cb) default void
World.getChunkAtAsync
(@NotNull Block block, @NotNull Consumer<? super Chunk> cb) -
Uses of Chunk in org.bukkit.block
Methods in org.bukkit.block that return Chunk -
Uses of Chunk in org.bukkit.entity
Methods in org.bukkit.entity that return ChunkModifier and TypeMethodDescriptiondefault @NotNull Chunk
Entity.getChunk()
Gets the latest chunk an entity is currently or was in.Methods in org.bukkit.entity that return types with arguments of type ChunkModifier and TypeMethodDescriptionPlayer.getSentChunks()
Gets the set of chunks that have been sent to the player.Methods in org.bukkit.entity with parameters of type ChunkModifier and TypeMethodDescriptiondefault boolean
Player.isChunkSent
(Chunk chunk) Checks if the player has been sent a specific chunk. -
Uses of Chunk in org.bukkit.event.world
Fields in org.bukkit.event.world declared as ChunkMethods in org.bukkit.event.world that return ChunkModifier and TypeMethodDescription@NotNull Chunk
ChunkEvent.getChunk()
Gets the chunk being loaded/unloadedConstructors in org.bukkit.event.world with parameters of type ChunkModifierConstructorDescriptionprotected
ChunkEvent
(@NotNull Chunk chunk) ChunkLoadEvent
(@NotNull Chunk chunk, boolean newChunk) ChunkPopulateEvent
(@NotNull Chunk chunk) ChunkUnloadEvent
(@NotNull Chunk chunk) ChunkUnloadEvent
(@NotNull Chunk chunk, boolean save) EntitiesLoadEvent
(@NotNull Chunk chunk, @NotNull List<Entity> entities) EntitiesUnloadEvent
(@NotNull Chunk chunk, @NotNull List<Entity> entities) -
Uses of Chunk in org.bukkit.generator
Methods in org.bukkit.generator with parameters of type Chunk
BlockPopulator.populate(WorldInfo, Random, int, int, LimitedRegion)