程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.event.entity | |
org.bukkit.event.vehicle | |
org.bukkit.potion |
代表每种
药水 属性和操作的类的集合. |
org.bukkit.util |
提供多种目的和单一目的的类以简化各种编程概念.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<LivingEntity> |
World.getLivingEntities()
获取一个这个世界所有生物实体的列表.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Collection<LivingEntity> |
Beacon.getEntitiesInRange()
Returns the list of players within the beacon's range of effect.
|
限定符和类型 | 方法和说明 |
---|---|
void |
Structure.setAuthor(LivingEntity livingEntity)
Set the name of whoever created this structure using a
LivingEntity . |
限定符和类型 | 接口和说明 |
---|---|
interface |
AbstractHorse
Represents a Horse-like creature.
|
interface |
Ageable
代表一个有年龄和繁殖能力的实体.
|
interface |
Ambient
代表环境生物(只有蝙蝠属于这一行列).
|
interface |
Animals
代表动物.
|
interface |
ArmorStand |
interface |
Bat
表示一只蝙蝠.
|
interface |
Blaze
代表烈焰人怪物.
|
interface |
CaveSpider
代表蜘蛛(洞穴蜘蛛).
|
interface |
ChestedHorse
Represents Horse-like creatures which can carry an inventory.
|
interface |
Chicken
代表鸡.
|
interface |
ComplexLivingEntity
Represents a complex living entity - one that is made up of various smaller
parts
|
interface |
Cow
代表牛.
|
interface |
Creature
Represents a Creature.
|
interface |
Creeper
代表爬行者.
|
interface |
Donkey
Represents a Donkey - variant of
ChestedHorse . |
interface |
ElderGuardian
Represents an ElderGuardian - variant of
Guardian . |
interface |
EnderDragon
Represents an Ender Dragon
|
interface |
Enderman
代表末影人.
|
interface |
Endermite |
interface |
Evoker
Represents an Evoker "Illager".
|
interface |
Flying
代表能飞行的实体.
|
interface |
Ghast
代表恶魂.
|
interface |
Giant
代表巨人.
|
interface |
Golem
一个可以伤害敌人的傀儡.
|
interface |
Guardian |
interface |
Horse
代表一匹马.
|
interface |
HumanEntity
代表人类实体, 比如一个NPC或一名玩家
|
interface |
Husk
代表一具尸壳 -
Zombie 的变异体. |
interface |
Illager
Represents a type of "Illager".
|
interface |
Illusioner
Represents an Illusioner "Illager".
|
interface |
IronGolem
村民守卫者——铁傀儡.
|
interface |
Llama
表示一只羊驼.
|
interface |
MagmaCube
Represents a MagmaCube.
|
interface |
Monster
代表怪物.
|
interface |
Mule
Represents a Mule - variant of
ChestedHorse . |
interface |
MushroomCow
代表哞菇(
Cow ). |
interface |
NPC
代表非玩家角色.
|
interface |
Ocelot
代表豹猫.
|
interface |
Parrot
Represents a Parrot.
|
interface |
Pig
代表猪.
|
interface |
PigZombie
代表僵尸猪人.
|
interface |
Player
玩家对象
|
interface |
PolarBear
Represents a polar bear.
|
interface |
Rabbit |
interface |
Sheep
代表羊.
|
interface |
Shulker |
interface |
Silverfish
代表蠢虫.
|
interface |
Skeleton
代表骷髅.
|
interface |
SkeletonHorse
Represents a SkeletonHorse - variant of
AbstractHorse . |
interface |
Slime
代表史莱姆.
|
interface |
Snowman
代表雪人实体.
|
interface |
Spellcaster
Represents a spell casting "Illager".
|
interface |
Spider
代表蜘蛛.
|
interface |
Squid
代表鱿鱼.
|
interface |
Stray
Represents a Stray - variant of
Skeleton . |
interface |
Vex
Represents a Vex.
|
interface |
Villager
Represents a villager NPC
|
interface |
Vindicator
Represents a Vindicator.
|
interface |
WaterMob
代表海洋生物.
|
interface |
Witch
代表女巫.
|
interface |
Wither
代表凋零boss.
|
interface |
WitherSkeleton
Represents a WitherSkeleton - variant of
Skeleton . |
interface |
Wolf
代表狼.
|
interface |
Zombie
代表僵尸.
|
interface |
ZombieHorse
Represents a ZombieHorse - variant of
AbstractHorse . |
interface |
ZombieVillager
|
限定符和类型 | 方法和说明 |
---|---|
LivingEntity |
EvokerFangs.getOwner()
Gets the
LivingEntity which summoned the fangs. |
LivingEntity |
Slime.getTarget()
获取史莱姆的攻击目标(
LivingEntity ). |
LivingEntity |
Creature.getTarget()
Gets the current target of this Creature
|
限定符和类型 | 方法和说明 |
---|---|
void |
EvokerFangs.setOwner(LivingEntity owner)
Sets the
LivingEntity which summoned the fangs. |
void |
Slime.setTarget(LivingEntity target)
设置史莱姆的攻击目标(
LivingEntity ). |
void |
Creature.setTarget(LivingEntity target)
Instructs this Creature to set the specified LivingEntity as its
target.
|
限定符和类型 | 方法和说明 |
---|---|
LivingEntity |
EntityBreedEvent.getBreeder()
Gets the Entity responsible for breeding.
|
LivingEntity |
EntityPickupItemEvent.getEntity() |
LivingEntity |
EntityTameEvent.getEntity() |
LivingEntity |
EntityBreakDoorEvent.getEntity() |
LivingEntity |
CreatureSpawnEvent.getEntity() |
LivingEntity |
EntityCreatePortalEvent.getEntity() |
LivingEntity |
EntityBreedEvent.getEntity() |
LivingEntity |
EntityResurrectEvent.getEntity() |
LivingEntity |
EntityDeathEvent.getEntity() |
LivingEntity |
EntityShootBowEvent.getEntity() |
LivingEntity |
EntityBreedEvent.getFather()
Gets the other parent of the newly born entity.
|
LivingEntity |
EntityBreedEvent.getMother()
Gets the parent creating this entity.
|
LivingEntity |
EntityTargetLivingEntityEvent.getTarget() |
限定符和类型 | 方法和说明 |
---|---|
java.util.Collection<LivingEntity> |
PotionSplashEvent.getAffectedEntities()
Retrieves a list of all effected entities
|
java.util.List<LivingEntity> |
AreaEffectCloudApplyEvent.getAffectedEntities()
获取一个受影响实体的可变列表。
|
限定符和类型 | 方法和说明 |
---|---|
double |
PotionSplashEvent.getIntensity(LivingEntity entity)
Gets the intensity of the potion's effects for given entity; This
depends on the distance to the impact center
|
void |
PotionSplashEvent.setIntensity(LivingEntity entity,
double intensity)
Overwrites the intensity for a given entity
|
构造器和说明 |
---|
AreaEffectCloudApplyEvent(AreaEffectCloud entity,
java.util.List<LivingEntity> affectedEntities) |
PotionSplashEvent(ThrownPotion potion,
java.util.Map<LivingEntity,java.lang.Double> affectedEntities) |
限定符和类型 | 方法和说明 |
---|---|
LivingEntity |
VehicleExitEvent.getExited()
获取退出载具事件的实体.
|
构造器和说明 |
---|
VehicleExitEvent(Vehicle vehicle,
LivingEntity exited) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
PotionEffect.apply(LivingEntity entity)
Attempts to add the effect represented by this object to the given
LivingEntity . |
void |
Potion.apply(LivingEntity to)
已过时。
Applies the effects that would be applied by this potion to the given
LivingEntity . |
构造器和说明 |
---|
BlockIterator(LivingEntity entity)
创建BlockIterator.
|
BlockIterator(LivingEntity entity,
int maxDistance)
BlockIterator的构造函数.
|