接口的使用
org.bukkit.Chunk
-
org.bukkit中Chunk的使用
修饰符和类型方法说明Location.getChunk()
获取此位置位于哪一区块.World.getChunkAt
(int x, int z) 获取给定坐标所在的区块
.World.getChunkAt
(int x, int z, boolean generate) Gets theChunk
at the given coordinatesWorld.getChunkAt
(@NotNull Block block) World.getChunkAt
(@NotNull Location location) World.getLoadedChunks()
获取一个所有被加载的区块
的数组.修饰符和类型方法说明World.getForceLoadedChunks()
Returns all force loaded chunks in this world.World.getIntersectingChunks
(@NotNull BoundingBox box) Gets all Chunks intersecting the given BoundingBox.World.getPluginChunkTickets()
Returns a map of which plugins have tickets for what chunks.修饰符和类型方法说明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) 检查指定区块
是否已经被加载.void
加载指定的区块
.boolean
World.unloadChunk
(@NotNull Chunk chunk) 安全的卸载并保存指定坐标的区块
. -
org.bukkit.block中Chunk的使用
-
org.bukkit.event.world中Chunk的使用
限定符构造器说明protected
ChunkEvent
(@NotNull Chunk chunk) ChunkLoadEvent
(@NotNull Chunk chunk, boolean newChunk) ChunkPopulateEvent
(@NotNull Chunk chunk) ChunkUnloadEvent
(@NotNull Chunk chunk) ChunkUnloadEvent
(@NotNull Chunk chunk, boolean save) -
org.bukkit.generator中Chunk的使用
BlockPopulator.populate(WorldInfo, Random, int, int, LimitedRegion)