程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.event.entity | |
org.bukkit.event.player | |
org.bukkit.inventory.meta |
用于操作可以被存储在
物品堆 的额外数据的接口. |
org.bukkit.material |
代表每种体素(意义可参考维基百科或百度百科相关条目,即物品被抽象为体素)的种类和状态.
|
限定符和类型 | 方法和说明 |
---|---|
Entity |
World.spawnEntity(Location loc,
EntityType type)
在指定的
位置 创建一个实体. |
限定符和类型 | 方法和说明 |
---|---|
EntityType |
CreatureSpawner.getSpawnedType()
获取刷怪笼的类型.
|
限定符和类型 | 方法和说明 |
---|---|
void |
CreatureSpawner.setSpawnedType(EntityType creatureType)
设置刷怪笼的类型.
|
限定符和类型 | 方法和说明 |
---|---|
static EntityType |
EntityType.fromId(int id)
已过时。
Magic value
|
static EntityType |
EntityType.fromName(java.lang.String name)
已过时。
Magic value
|
EntityType |
Entity.getType()
Get the type of the entity.
|
static EntityType |
EntityType.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static EntityType[] |
EntityType.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
void |
Player.decrementStatistic(Statistic statistic,
EntityType entityType)
把该玩家的统计信息中跟实体有关的统计项中的某种实体(
EntityType )的数量-1. |
void |
Player.decrementStatistic(Statistic statistic,
EntityType entityType,
int amount)
将该玩家的统计信息中某个跟实体有关的统计项中的某实体类型(
EntityType )减少指定的值. |
int |
Player.getStatistic(Statistic statistic,
EntityType entityType)
获得该玩家的统计信息中跟实体有关的统计项中的某实体(
EntityType )数量. |
void |
Player.incrementStatistic(Statistic statistic,
EntityType entityType)
把该玩家的统计信息中跟实体有关的统计项中的某种实体(
EntityType )的数量+1. |
void |
Player.incrementStatistic(Statistic statistic,
EntityType entityType,
int amount)
将该玩家的统计信息中的某个跟实体有关的统计项的某实体类型(
EntityType )加上指定的数值. |
void |
Player.setStatistic(Statistic statistic,
EntityType entityType,
int newValue)
设置该玩家的统计信息中某个跟实体有关的统计项的某实体类型(
EntityType )为某个数值. |
限定符和类型 | 方法和说明 |
---|---|
EntityType |
EntityEvent.getEntityType()
获取涉及这个事件的实体的EntityType.
|
限定符和类型 | 方法和说明 |
---|---|
EntityType |
PlayerStatisticIncrementEvent.getEntityType()
如果
getStatistic() 是关于实体的统计信息,获取该统计数据的实体种类,否则返回null. |
EntityType |
PlayerEggThrowEvent.getHatchingType()
获取将被孵化的生物类型 (默认为EntityType.CHICKEN ).
|
限定符和类型 | 方法和说明 |
---|---|
void |
PlayerEggThrowEvent.setHatchingType(EntityType hatchType)
修改将被孵化生物的类型.
|
构造器和说明 |
---|
PlayerEggThrowEvent(Player player,
Egg egg,
boolean hatching,
byte numHatches,
EntityType hatchingType) |
PlayerStatisticIncrementEvent(Player player,
Statistic statistic,
int initialValue,
int newValue,
EntityType entityType) |
限定符和类型 | 方法和说明 |
---|---|
EntityType |
SpawnEggMeta.getSpawnedType()
Get the type of entity this egg will spawn.
|
限定符和类型 | 方法和说明 |
---|---|
void |
SpawnEggMeta.setSpawnedType(EntityType type)
Set the type of entity this egg will spawn.
|
限定符和类型 | 方法和说明 |
---|---|
EntityType |
SpawnEgg.getSpawnedType()
已过时。
现存储在
SpawnEggMeta . |
限定符和类型 | 方法和说明 |
---|---|
void |
SpawnEgg.setSpawnedType(EntityType type)
已过时。
现存储在
SpawnEggMeta . |
构造器和说明 |
---|
SpawnEgg(EntityType type)
已过时。
|