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