接口的使用
org.bukkit.Chunk
使用Chunk的程序包
-
org.bukkit中Chunk的使用
返回Chunk的org.bukkit中的方法修饰符和类型方法说明Location.getChunk()获取此位置位于哪一区块.World.getChunkAt(int x, int z) 获取给定坐标所在的区块.World.getChunkAt(int x, int z, boolean generate) Gets theChunkat the given coordinatesWorld.getChunkAt(@NotNull Block block) World.getChunkAt(@NotNull Location location) World.getLoadedChunks()获取一个所有被加载的区块的数组.返回变量类型为Chunk的类型的org.bukkit中的方法修饰符和类型方法说明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.参数类型为Chunk的org.bukkit中的方法修饰符和类型方法说明World.getPlayersSeeingChunk(@NotNull Chunk chunk) Get a list of all players who are can view the specified chunk from their clientbooleanWorld.isChunkLoaded(@NotNull Chunk chunk) 检查指定区块是否已经被加载.void加载指定的区块.booleanWorld.unloadChunk(@NotNull Chunk chunk) 安全的卸载并保存指定坐标的区块. -
org.bukkit.block中Chunk的使用
返回Chunk的org.bukkit.block中的方法 -
org.bukkit.event.world中Chunk的使用
声明为Chunk的org.bukkit.event.world中的字段返回Chunk的org.bukkit.event.world中的方法参数类型为Chunk的org.bukkit.event.world中的构造器限定符构造器说明protectedChunkEvent(@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的使用
参数类型为Chunk的org.bukkit.generator中的方法
BlockPopulator.populate(WorldInfo, Random, int, int, LimitedRegion)