程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.event.player | |
org.bukkit.event.weather |
与天气状态变化相关的
事件 . |
org.bukkit.event.world | |
org.bukkit.generator |
简化
世界 生成实现的类. |
org.bukkit.map |
用于简化处理
地图 显示内容的类. |
org.bukkit.util |
提供多种目的和单一目的的类以简化各种编程概念.
|
org.bukkit.util.noise |
噪声相关工具.
|
限定符和类型 | 方法和说明 |
---|---|
World |
WorldCreator.createWorld()
使用指定的设置创建一个世界。
|
static World |
Bukkit.createWorld(WorldCreator creator)
用给定的世界生成器来创建或者加载一个世界.
|
World |
Server.createWorld(WorldCreator creator)
使用给定的名字和配置来创建或者加载一个World
原文:Creates or loads a world with the given name using the specified
options.
|
World |
Chunk.getWorld()
获取该区块属于哪个世界.
|
World |
Location.getWorld()
获取本位置所在的世界.
|
static World |
Bukkit.getWorld(java.lang.String name)
使用给定名称查找世界.
|
World |
Server.getWorld(java.lang.String name)
通过给定的name获取一个World实例
原文:Gets the world with the given name.
|
static World |
Bukkit.getWorld(java.util.UUID uid)
使用给定唯一ID查找世界.
|
World |
Server.getWorld(java.util.UUID uid)
通过UUID获取World实例
原文:Gets the world from the given Unique ID.
|
限定符和类型 | 方法和说明 |
---|---|
static java.util.List<World> |
Bukkit.getWorlds()
获取当前服务器加载的所有世界的列表.
|
java.util.List<World> |
Server.getWorlds()
获取服务器以List封装的所有World
原文:Gets a list of all worlds on this server.
|
限定符和类型 | 方法和说明 |
---|---|
WorldCreator |
WorldCreator.copy(World world)
从指定的世界复制设置。
|
static ChunkGenerator.ChunkData |
Bukkit.createChunkData(World world)
创建一个 ChunkData 实例,以用于区块生成。
|
ChunkGenerator.ChunkData |
Server.createChunkData(World world)
创建一个 ChunkData 实例,以用于区块生成。
|
static MapView |
Bukkit.createMap(World world)
创建一个新地图并自动分配一个ID.
|
MapView |
Server.createMap(World world)
创建一个新的MapView实例并且自动分配ID
Create a new map with an automatically assigned ID.
|
void |
Location.setWorld(World world)
设置本位置所在的世界.
|
static boolean |
Bukkit.unloadWorld(World world,
boolean save)
卸载指定的世界.
|
boolean |
Server.unloadWorld(World world,
boolean save)
通过给定的Wrold实例从服务器卸载一个World
原文:Unloads the given world.
|
构造器和说明 |
---|
Location(World world,
double x,
double y,
double z)
以给定的坐标构造一个Location对象.
|
Location(World world,
double x,
double y,
double z,
float yaw,
float pitch)
以给定的坐标和朝向构造一个Location对象.
|
限定符和类型 | 方法和说明 |
---|---|
World |
BlockState.getWorld()
Gets the world which contains the block represented by this block state.
|
World |
DoubleChest.getWorld() |
World |
Block.getWorld()
获取此方块所处的世界.
|
限定符和类型 | 方法和说明 |
---|---|
World |
Entity.getWorld()
Gets the current world this entity resides in
|
限定符和类型 | 方法和说明 |
---|---|
World |
PlayerChangedWorldEvent.getFrom()
获得玩家切换到目标世界之前所在的世界.
|
构造器和说明 |
---|
PlayerChangedWorldEvent(Player player,
World from) |
限定符和类型 | 字段和说明 |
---|---|
protected World |
WeatherEvent.world |
限定符和类型 | 方法和说明 |
---|---|
World |
WeatherEvent.getWorld()
返回天气事件所发生的世界.
|
构造器和说明 |
---|
LightningStrikeEvent(World world,
LightningStrike bolt) |
ThunderChangeEvent(World world,
boolean to) |
WeatherChangeEvent(World world,
boolean to) |
WeatherEvent(World where) |
限定符和类型 | 方法和说明 |
---|---|
World |
WorldEvent.getWorld()
获取这个事件主要涉及的世界.
|
构造器和说明 |
---|
PortalCreateEvent(java.util.Collection<Block> blocks,
World world,
PortalCreateEvent.CreateReason reason) |
SpawnChangeEvent(World world,
Location previousLocation) |
WorldEvent(World world) |
WorldInitEvent(World world) |
WorldLoadEvent(World world) |
WorldSaveEvent(World world) |
WorldUnloadEvent(World world) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
ChunkGenerator.canSpawn(World world,
int x,
int z)
测试指定方位是否对自然生成的方位有效。
|
protected ChunkGenerator.ChunkData |
ChunkGenerator.createChunkData(World world)
Create a ChunkData for a world.
|
byte[] |
ChunkGenerator.generate(World world,
java.util.Random random,
int x,
int z)
已过时。
不安全的参数
|
byte[][] |
ChunkGenerator.generateBlockSections(World world,
java.util.Random random,
int x,
int z,
ChunkGenerator.BiomeGrid biomes)
已过时。
不安全的参数
|
ChunkGenerator.ChunkData |
ChunkGenerator.generateChunkData(World world,
java.util.Random random,
int x,
int z,
ChunkGenerator.BiomeGrid biome)
Shapes the chunk for the given coordinates.
|
short[][] |
ChunkGenerator.generateExtBlockSections(World world,
java.util.Random random,
int x,
int z,
ChunkGenerator.BiomeGrid biomes)
已过时。
不安全的参数
|
java.util.List<BlockPopulator> |
ChunkGenerator.getDefaultPopulators(World world)
得到一个用于提供指定世界的默认的
BlockPopulator 列表。 |
Location |
ChunkGenerator.getFixedSpawnLocation(World world,
java.util.Random random)
获取一个固定出生方位用于一个指定的世界。
|
abstract void |
BlockPopulator.populate(World world,
java.util.Random random,
Chunk source)
在指定的区块附近或内部填充一定区域的方块。
|
限定符和类型 | 方法和说明 |
---|---|
World |
MapView.getWorld()
Get the world that this map is associated with.
|
限定符和类型 | 方法和说明 |
---|---|
void |
MapView.setWorld(World world)
Set the world that this map is associated with.
|
限定符和类型 | 方法和说明 |
---|---|
Location |
Vector.toLocation(World world)
将向量转换为 Location,
其自转角(也叫偏航角,Yaw)、旋进角(也叫进动角、俯仰角,Pitch)为0.
|
Location |
Vector.toLocation(World world,
float yaw,
float pitch)
将向量转换为 Location.
|
构造器和说明 |
---|
BlockIterator(World world,
Vector start,
Vector direction,
double yOffset,
int maxDistance)
BlockIterator的构造函数.
|
构造器和说明 |
---|
PerlinNoiseGenerator(World world)
使用给定的World创建一个已设种子的PerlinNoiseGenerator.
|
PerlinOctaveGenerator(World world,
int octaves)
使用给定的World创建一个PerlinOctaveGenerator.
|
SimplexNoiseGenerator(World world)
使用给定的World创建一个已设种子的SimplexNoiseGenerator.
|
SimplexOctaveGenerator(World world,
int octaves)
使用给定的World创建一个SimplexOctaveGenerator.
|