接口的使用
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()Get theWorldin which the border resides.返回变量类型为World的类型的org.bukkit中的方法参数类型为World的org.bukkit中的方法修饰符和类型方法说明从指定的世界复制设置。Get the crafted item using the list ofItemStackprovided.Get the crafted item using the list ofItemStackprovided.Get the crafted item using the list ofItemStackprovided.Get the crafted item using the list ofItemStackprovided.static @NotNull ItemCraftResultBukkit.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStackprovided.static @NotNull ItemCraftResultBukkit.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStackprovided.Server.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStackprovided.Server.craftItemResult(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStackprovided.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) Create a new explorer map targeting the closest nearby structure of a givenStructureType.Bukkit.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) Create a new explorer map targeting the closest nearby structure of a givenStructureType.Server.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType) Create a new explorer map targeting the closest nearby structure of a givenStructureType.Server.createExplorerMap(@NotNull World world, @NotNull Location location, @NotNull StructureType structureType, int radius, boolean findUnexplored) Create a new explorer map targeting the closest nearby structure of a givenStructureType.创建一个新地图并自动分配一个ID.创建一个新地图并自动分配一个ID.Bukkit.getCraftingRecipe(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get theRecipefor the list of ItemStacks provided.Server.getCraftingRecipe(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get theRecipefor the list of ItemStacks provided.booleanMaterial.isEnabledByFeature(@NotNull World world) Gets if the Material is enabled by the features in a world.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中的方法修饰符和类型方法说明booleanBlockType.isEnabledByFeature(@NotNull World world) Gets if the BlockType is enabled by the features in a world. -
org.bukkit.entity中World的使用
返回World的org.bukkit.entity中的方法参数类型为World的org.bukkit.entity中的方法修饰符和类型方法说明EntitySnapshot.createEntity(@NotNull World world) Creates an entity using this template.booleanEntityType.isEnabledByFeature(@NotNull World world) Gets if this EntityType is enabled by feature in a 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) 已过时。The generation is now split up and the new methods should be used, seeChunkGeneratorChunkGenerator.getDefaultPopulators(@NotNull World world) 得到一个用于提供指定世界的默认的BlockPopulator列表。ChunkGenerator.getFixedSpawnLocation(@NotNull World world, @NotNull Random random) 获取一个固定出生方位用于一个指定的世界。void -
org.bukkit.inventory中World的使用
参数类型为World的org.bukkit.inventory中的方法修饰符和类型方法说明ItemFactory.enchantItem(@NotNull World world, @NotNull ItemStack item, int level, boolean allowTreasures) Enchants the given item at the provided level.booleanItemType.isEnabledByFeature(@NotNull World world) Gets if the ItemType is enabled by the features in a world. -
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) Return all the disabledDataPackin the World.DataPackManager.getEnabledDataPacks(@NotNull World world) Return all the enabledDataPackin the World.booleanDataPackManager.isEnabledByFeature(@NotNull BlockType blockType, @NotNull World world) Gets if the BlockType is enabled for use by the features in World.booleanDataPackManager.isEnabledByFeature(@NotNull EntityType entityType, @NotNull World world) Gets if the EntityType is enabled for use by the Features in World.booleanDataPackManager.isEnabledByFeature(@NotNull ItemType itemType, @NotNull World world) Gets if the ItemType is enabled for use by the features in World.booleanDataPackManager.isEnabledByFeature(@NotNull Material material, @NotNull World world) Gets if the Material is enabled for use by the features in World. -
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.ChunkDataare now directly provided