接口的使用
org.bukkit.World
使用World的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界内的三位像素(方块),包括一些特定的状态.为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.与袭击有关的
事件(Minecraft Wiki - 袭击).与天气状态变化相关的
事件.简化
世界生成实现的类.参与操作玩家物品栏和物品交互的类.
用于简化处理
地图显示内容的类.Classes dedicated to handling data pack information.
提供多种目的和单一目的的类以简化各种编程概念.
噪声相关工具.
-
org.bukkit中World的使用
返回World的org.bukkit中的方法修饰符和类型方法说明Bukkit.createWorld(@NotNull WorldCreator creator) 用给定的世界生成器来创建或者加载一个世界.Server.createWorld(@NotNull WorldCreator creator) 用给定的世界生成器来创建或者加载一个世界.WorldCreator.createWorld()使用指定的设置创建一个世界。使用给定的名称查找世界.使用给定唯一ID查找世界.Chunk.getWorld()获取该区块属于哪个世界.Location.getWorld()获取本位置所在的世界.使用给定的名称查找世界.使用给定唯一ID查找世界.WorldBorder.getWorld()获取边界所在的World.返回变量类型为World的类型的org.bukkit中的方法参数类型为World的org.bukkit中的方法修饰符和类型方法说明从指定的世界复制设置。使用提供的ItemStack列表获取合成后的物品.使用提供的ItemStack列表获取合成后的物品.使用提供的ItemStack列表获取合成后的物品.使用提供的ItemStack列表获取合成后的物品.static @NotNull ItemCraftResultBukkit.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world) 使用提供的ItemStack列表获取合成后的物品.static @NotNull ItemCraftResultBukkit.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) 使用提供的ItemStack列表获取合成后的物品.Server.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world) 使用提供的ItemStack列表获取合成后的物品.Server.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) 使用提供的ItemStack列表获取合成后的物品.static ChunkGenerator.ChunkDataBukkit.createChunkData(@NotNull World world) 创建一个 ChunkData 实例,以用于区块生成。Server.createChunkData(@NotNull World world) 创建一个 ChunkData 实例,以用于区块生成。Bukkit.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType) 创建一个以最近的指定结构类型为目标的新探险家地图.Bukkit.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) 创建一个以最近的指定结构类型为目标的新探险家地图.Server.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType) 创建一个新的探索者地图, 以定位最近的指定StructureType结构.Server.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) 创建一个新的探索者地图, 以定位最近的指定StructureType结构.创建一个新地图并自动分配一个ID.创建一个新地图并自动分配一个ID.Bukkit.getCraftingRecipe(@NotNull ItemStack[] craftingMatrix, @NotNull World world) 获取给定物品堆列表对应的配方.Server.getCraftingRecipe(@NotNull ItemStack[] craftingMatrix, @NotNull World world) 获取指定物品堆栈列表对应的配方.booleanMaterial.isEnabledByFeature(@NotNull World world) 检测此Material是否在世界中被特性启用.void设置本位置所在的世界.static booleanBukkit.unloadWorld(@NotNull World world, boolean save) 卸载指定的世界.booleanServer.unloadWorld(@NotNull World world, boolean save) 卸载指定的世界.参数类型为World的org.bukkit中的构造器 -
org.bukkit.block中World的使用
返回World的org.bukkit.block中的方法参数类型为World的org.bukkit.block中的方法 -
org.bukkit.entity中World的使用
返回World的org.bukkit.entity中的方法参数类型为World的org.bukkit.entity中的方法修饰符和类型方法说明EntitySnapshot.createEntity(@NotNull World world) 使用此模板创建实体.booleanEntityType.isEnabledByFeature(@NotNull World world) 获取此实体种类是否在指定世界中通过特性启用. -
org.bukkit.event.player中World的使用
返回World的org.bukkit.event.player中的方法参数类型为World的org.bukkit.event.player中的构造器 -
org.bukkit.event.raid中World的使用
参数类型为World的org.bukkit.event.raid中的构造器 -
org.bukkit.event.weather中World的使用
声明为World的org.bukkit.event.weather中的字段参数类型为World的org.bukkit.event.weather中的构造器限定符构造器说明LightningStrikeEvent(@NotNull World world, @NotNull LightningStrike bolt) 已过时。LightningStrikeEvent(@NotNull World world, @NotNull LightningStrike bolt, @NotNull LightningStrikeEvent.Cause cause) ThunderChangeEvent(@NotNull World world, boolean to) WeatherChangeEvent(@NotNull World world, boolean to) WeatherEvent(@NotNull World where) -
org.bukkit.event.world中World的使用
返回World的org.bukkit.event.world中的方法参数类型为World的org.bukkit.event.world中的构造器限定符构造器说明AsyncStructureGenerateEvent(@NotNull World world, boolean async, @NotNull AsyncStructureGenerateEvent.Cause cause, @NotNull Structure structure, @NotNull BoundingBox boundingBox, int chunkX, int chunkZ) AsyncStructureSpawnEvent(@NotNull World world, @NotNull Structure structure, @NotNull BoundingBox boundingBox, int chunkX, int chunkZ) LootGenerateEvent(@NotNull World world, @Nullable Entity entity, @Nullable InventoryHolder inventoryHolder, @NotNull LootTable lootTable, @NotNull LootContext lootContext, @NotNull List<ItemStack> items, boolean plugin) PortalCreateEvent(@NotNull List<BlockState> blocks, @NotNull World world, @NotNull PortalCreateEvent.CreateReason reason) 已过时。PortalCreateEvent(@NotNull List<BlockState> blocks, @NotNull World world, @Nullable Entity entity, @NotNull PortalCreateEvent.CreateReason reason) SpawnChangeEvent(@NotNull World world, @NotNull Location previousLocation) TimeSkipEvent(@NotNull World world, @NotNull TimeSkipEvent.SkipReason skipReason, long skipAmount) WorldEvent(@NotNull World world) WorldEvent(@NotNull World world, boolean isAsync) WorldInitEvent(@NotNull World world) WorldLoadEvent(@NotNull World world) WorldSaveEvent(@NotNull World world) WorldUnloadEvent(@NotNull World world) -
org.bukkit.generator中World的使用
参数类型为World的org.bukkit.generator中的方法修饰符和类型方法说明boolean测试指定方位是否对自然生成的方位有效。protected final @NotNull ChunkGenerator.ChunkDataChunkGenerator.createChunkData(@NotNull World world) 已过时。ChunkGenerator.generateChunkData(@NotNull World world, @NotNull Random random, int x, int z, @NotNull ChunkGenerator.BiomeGrid biome) 已过时。生成现在已拆分,应使用新方法,参见ChunkGeneratorChunkGenerator.getDefaultPopulators(@NotNull World world) 得到一个用于提供指定世界的默认的BlockPopulator列表。ChunkGenerator.getFixedSpawnLocation(@NotNull World world, @NotNull Random random) 获取一个固定出生方位用于一个指定的世界。void -
org.bukkit.inventory中World的使用
参数类型为World的org.bukkit.inventory中的方法修饰符和类型方法说明ItemFactory.createExplorerMap(@NotNull World world, @NotNull Location structureLocation, MapCursor.Type mapIcon) Create a new explorer map targeting the given structure location.ItemFactory.enchantItem(@NotNull World world, @NotNull ItemStack item, int level, boolean allowTreasures) 在指定等级对给定物品进行附魔。booleanItemType.isEnabledByFeature(@NotNull World world) 获取此 ItemType 是否在某个世界中被特性启用。 -
org.bukkit.map中World的使用
返回World的org.bukkit.map中的方法参数类型为World的org.bukkit.map中的方法 -
org.bukkit.packs中World的使用
参数类型为World的org.bukkit.packs中的方法修饰符和类型方法说明DataPackManager.getDisabledDataPacks(@NotNull World world) 返回世界中所有禁用的DataPack.DataPackManager.getEnabledDataPacks(@NotNull World world) 返回世界中所有启用的DataPack.booleanDataPackManager.isEnabledByFeature(@NotNull BlockType blockType, @NotNull World world) 获取BlockType是否在世界中被特性启用.booleanDataPackManager.isEnabledByFeature(@NotNull EntityType entityType, @NotNull World world) 获取EntityType是否在世界中被特性启用.booleanDataPackManager.isEnabledByFeature(@NotNull ItemType itemType, @NotNull World world) 获取ItemType是否在世界中被特性启用.booleanDataPackManager.isEnabledByFeature(@NotNull Material material, @NotNull World world) 获取Material是否在世界中被特性启用. -
org.bukkit.util中World的使用
参数类型为World的org.bukkit.util中的方法修饰符和类型方法说明Vector.toLocation(@NotNull World world) 将向量转换为 Location, 其自转角(也叫偏航角,Yaw)、旋进角(也叫进动角、俯仰角,Pitch)为0.Vector.toLocation(@NotNull World world, float yaw, float pitch) 将向量转换为 Location.参数类型为World的org.bukkit.util中的构造器 -
org.bukkit.util.noise中World的使用
参数类型为World的org.bukkit.util.noise中的构造器限定符构造器说明PerlinNoiseGenerator(@NotNull World world) 使用给定的World创建一个已设种子的PerlinNoiseGenerator.PerlinOctaveGenerator(@NotNull World world, int octaves) 使用给定的World创建一个PerlinOctaveGenerator.SimplexNoiseGenerator(@NotNull World world) 使用给定的World创建一个已设种子的SimplexNoiseGenerator.SimplexOctaveGenerator(@NotNull World world, int octaves) 使用给定的World创建一个SimplexOctaveGenerator.
ChunkGenerator.ChunkData现在直接提供