程序包 | 说明 |
---|---|
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.event.entity | |
org.bukkit.projectiles |
代表一个抛射物的抛射源的类的集合.
|
限定符和类型 | 接口和说明 |
---|---|
interface |
Arrow
表示一只箭矢.
|
interface |
DragonFireball |
interface |
Egg
代表抛出的鸡蛋.
|
interface |
EnderPearl
代表抛出的末影珍珠实体.
|
interface |
Fireball
Represents a Fireball.
|
interface |
Fish
已过时。
赞成使用
FishHook |
interface |
FishHook
Represents a fishing hook.
|
interface |
LargeFireball
代表大的火球(
Fireball ). |
interface |
LingeringPotion
Represents a thrown lingering potion bottle
|
interface |
LlamaSpit
代表羊驼唾沫.
|
interface |
ShulkerBullet |
interface |
SmallFireball
代表小的火球(
Fireball ). |
interface |
Snowball
代表雪球.
|
interface |
SpectralArrow
Represents a spectral arrow.
|
interface |
SplashPotion
Represents a thrown splash potion bottle
|
interface |
ThrownExpBottle
代表抛出的附魔之瓶.
|
interface |
ThrownPotion
Represents a thrown potion bottle
|
interface |
TippedArrow |
interface |
WitherSkull
代表凋零之首.
|
限定符和类型 | 方法和说明 |
---|---|
Projectile |
ProjectileLaunchEvent.getEntity() |
Projectile |
ProjectileHitEvent.getEntity() |
构造器和说明 |
---|
EntityShootBowEvent(LivingEntity shooter,
ItemStack bow,
Projectile projectile,
float force) |
ProjectileHitEvent(Projectile projectile) |
ProjectileHitEvent(Projectile projectile,
Block hitBlock) |
ProjectileHitEvent(Projectile projectile,
Entity hitEntity) |
ProjectileHitEvent(Projectile projectile,
Entity hitEntity,
Block hitBlock) |
限定符和类型 | 方法和说明 |
---|---|
<T extends Projectile> |
ProjectileSource.launchProjectile(java.lang.Class<? extends T> projectile)
让ProjectileSource发射一个
Projectile 。 |
<T extends Projectile> |
ProjectileSource.launchProjectile(java.lang.Class<? extends T> projectile,
Vector velocity)
让ProjectileSource以一个初始速度向量发射
Projectile 。 |