接口的使用
org.bukkit.World
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.与袭击有关的
事件
(Minecraft Wiki - 袭击).与天气状态变化相关的
事件
.简化
世界
生成实现的类.参与操作玩家物品栏和物品交互的类.
用于简化处理
地图
显示内容的类.Classes dedicated to handling data pack information.
提供多种目的和单一目的的类以简化各种编程概念.
噪声相关工具.
-
org.bukkit中World的使用
修饰符和类型方法说明Bukkit.createWorld
(@NotNull WorldCreator creator) 用给定的世界生成器来创建或者加载一个世界.Server.createWorld
(@NotNull WorldCreator creator) 用给定的世界生成器来创建或者加载一个世界.WorldCreator.createWorld()
使用指定的设置创建一个世界。使用给定的名称查找世界.使用给定唯一ID查找世界.Chunk.getWorld()
获取该区块属于哪个世界.Location.getWorld()
获取本位置所在的世界.使用给定的名称查找世界.使用给定唯一ID查找世界.WorldBorder.getWorld()
Get theWorld
in which the border resides.修饰符和类型方法说明从指定的世界复制设置。Get the crafted item using the list ofItemStack
provided.Get the crafted item using the list ofItemStack
provided.Get the crafted item using the list ofItemStack
provided.Get the crafted item using the list ofItemStack
provided.static @NotNull ItemCraftResult
Bukkit.craftItemResult
(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStack
provided.static @NotNull ItemCraftResult
Bukkit.craftItemResult
(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStack
provided.Server.craftItemResult
(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get the crafted item using the list ofItemStack
provided.Server.craftItemResult
(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStack
provided.static ChunkGenerator.ChunkData
Bukkit.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 theRecipe
for the list of ItemStacks provided.Server.getCraftingRecipe
(@NotNull ItemStack[] craftingMatrix, @NotNull World world) Get theRecipe
for the list of ItemStacks provided.boolean
Material.isEnabledByFeature
(@NotNull World world) Gets if the Material is enabled by the features in a world.void
设置本位置所在的世界.static boolean
Bukkit.unloadWorld
(@NotNull World world, boolean save) 卸载指定的世界.boolean
Server.unloadWorld
(@NotNull World world, boolean save) 卸载指定的世界. -
org.bukkit.block中World的使用
修饰符和类型方法说明boolean
BlockType.isEnabledByFeature
(@NotNull World world) Gets if the BlockType is enabled by the features in a world. -
org.bukkit.entity中World的使用
修饰符和类型方法说明EntitySnapshot.createEntity
(@NotNull World world) Creates an entity using this template.boolean
EntityType.isEnabledByFeature
(@NotNull World world) Gets if this EntityType is enabled by feature in a world. -
org.bukkit.event.player中World的使用
-
org.bukkit.event.raid中World的使用
-
org.bukkit.event.weather中World的使用
限定符构造器说明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的使用
限定符构造器说明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的使用
修饰符和类型方法说明boolean
测试指定方位是否对自然生成的方位有效。protected final @NotNull ChunkGenerator.ChunkData
ChunkGenerator.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, seeChunkGenerator
ChunkGenerator.getDefaultPopulators
(@NotNull World world) 得到一个用于提供指定世界的默认的BlockPopulator
列表。ChunkGenerator.getFixedSpawnLocation
(@NotNull World world, @NotNull Random random) 获取一个固定出生方位用于一个指定的世界。void
-
org.bukkit.inventory中World的使用
修饰符和类型方法说明ItemFactory.enchantItem
(@NotNull World world, @NotNull ItemStack item, int level, boolean allowTreasures) Enchants the given item at the provided level.boolean
ItemType.isEnabledByFeature
(@NotNull World world) Gets if the ItemType is enabled by the features in a world. -
org.bukkit.map中World的使用
-
org.bukkit.packs中World的使用
修饰符和类型方法说明DataPackManager.getDisabledDataPacks
(@NotNull World world) Return all the disabledDataPack
in the World.DataPackManager.getEnabledDataPacks
(@NotNull World world) Return all the enabledDataPack
in the World.boolean
DataPackManager.isEnabledByFeature
(@NotNull BlockType blockType, @NotNull World world) Gets if the BlockType is enabled for use by the features in World.boolean
DataPackManager.isEnabledByFeature
(@NotNull EntityType entityType, @NotNull World world) Gets if the EntityType is enabled for use by the Features in World.boolean
DataPackManager.isEnabledByFeature
(@NotNull ItemType itemType, @NotNull World world) Gets if the ItemType is enabled for use by the features in World.boolean
DataPackManager.isEnabledByFeature
(@NotNull Material material, @NotNull World world) Gets if the Material is enabled for use by the features in World. -
org.bukkit.util中World的使用
修饰符和类型方法说明Vector.toLocation
(@NotNull World world) 将向量转换为 Location, 其自转角(也叫偏航角,Yaw)、旋进角(也叫进动角、俯仰角,Pitch)为0.Vector.toLocation
(@NotNull World world, float yaw, float pitch) 将向量转换为 Location. -
org.bukkit.util.noise中World的使用
限定符构造器说明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
are now directly provided