程序包 | 说明 |
---|---|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.inventory.meta |
用于操作可以被存储在
物品堆 的额外数据的接口. |
org.bukkit.potion |
代表每种
药水 属性和操作的类的集合. |
限定符和类型 | 方法和说明 |
---|---|
PotionEffect |
Beacon.getPrimaryEffect()
Returns the primary effect set on the beacon
|
PotionEffect |
Beacon.getSecondaryEffect()
Returns the secondary effect set on the beacon.
|
限定符和类型 | 方法和说明 |
---|---|
PotionEffect |
LivingEntity.getPotionEffect(PotionEffectType type)
返回指定类型的有效
PotionEffect 。 |
限定符和类型 | 方法和说明 |
---|---|
java.util.Collection<PotionEffect> |
LivingEntity.getActivePotionEffects()
返回当前作用于生物实体的所有
PotionEffect 。 |
java.util.List<PotionEffect> |
TippedArrow.getCustomEffects()
Gets an immutable list containing all custom potion effects applied to
this arrow.
|
java.util.List<PotionEffect> |
AreaEffectCloud.getCustomEffects()
获取一个包含这片云所有的自定义药水效果的不可变集合 (immutable list).
|
java.util.Collection<PotionEffect> |
ThrownPotion.getEffects()
Returns the effects that are applied by this potion.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
TippedArrow.addCustomEffect(PotionEffect effect,
boolean overwrite)
Adds a custom potion effect to this arrow.
|
boolean |
AreaEffectCloud.addCustomEffect(PotionEffect effect,
boolean overwrite)
向这片云添加一个自定义药水效果.
|
boolean |
LivingEntity.addPotionEffect(PotionEffect effect)
向生物实体添加指定的
PotionEffect (药水效果)。 |
boolean |
LivingEntity.addPotionEffect(PotionEffect effect,
boolean force)
向生物实体添加指定的
PotionEffect (药水效果)。 |
限定符和类型 | 方法和说明 |
---|---|
boolean |
LivingEntity.addPotionEffects(java.util.Collection<PotionEffect> effects)
尝试向生物实体添加所有指定的
PotionEffect (药水效果)。 |
限定符和类型 | 方法和说明 |
---|---|
java.util.List<PotionEffect> |
PotionMeta.getCustomEffects()
获取包含了这个药水存在的所有药水效果的一个不可变的列表.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
PotionMeta.addCustomEffect(PotionEffect effect,
boolean overwrite)
添加一个自定义药水效果到这个药水上.
|
限定符和类型 | 方法和说明 |
---|---|
PotionEffect |
PotionEffectType.createEffect(int duration,
int amplifier)
Creates a PotionEffect from this PotionEffectType, applying duration
modifiers and checks.
|
PotionEffect |
PotionBrewer.createEffect(PotionEffectType potion,
int duration,
int amplifier)
Creates a
PotionEffect from the given PotionEffectType ,
applying duration modifiers and checks. |
限定符和类型 | 方法和说明 |
---|---|
java.util.Collection<PotionEffect> |
Potion.getEffects()
已过时。
|
java.util.Collection<PotionEffect> |
PotionBrewer.getEffects(PotionType type,
boolean upgraded,
boolean extended)
Returns a collection of
PotionEffect that would be applied from
a potion with the given type. |
java.util.Collection<PotionEffect> |
PotionBrewer.getEffectsFromDamage(int damage)
已过时。
Non-Functional
|