类的使用
org.bukkit.potion.PotionEffectType
程序包
说明
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.用于操作可以被存储在
物品堆
的额外数据的接口.代表每种
药水
属性和操作的类的集合.-
org.bukkit.block中PotionEffectType的使用
修饰符和类型方法说明void
Beacon.setPrimaryEffect
(PotionEffectType effect) Set the primary effect on this beacon, or null to clear.void
Beacon.setSecondaryEffect
(PotionEffectType effect) Set the secondary effect on this beacon, or null to clear. -
org.bukkit.entity中PotionEffectType的使用
修饰符和类型方法说明LivingEntity.getPotionEffect
(PotionEffectType type) 返回指定类型的有效PotionEffect
。boolean
AreaEffectCloud.hasCustomEffect
(PotionEffectType type) 检查这片云中是否存在一种特定的自定义药水效果类型.boolean
TippedArrow.hasCustomEffect
(PotionEffectType type) Checks for a specific custom potion effect type on this arrow.boolean
LivingEntity.hasPotionEffect
(PotionEffectType type) 返回生物实体是否已经存在一个指定的PotionEffectType
效果。boolean
AreaEffectCloud.removeCustomEffect
(PotionEffectType type) 从这片云移除一个自定义药水效果.boolean
TippedArrow.removeCustomEffect
(PotionEffectType type) Removes a custom potion effect from this arrow.void
LivingEntity.removePotionEffect
(PotionEffectType type) 移除当前所有指定的PotionEffectType
效果。 -
org.bukkit.inventory.meta中PotionEffectType的使用
修饰符和类型方法说明boolean
PotionMeta.hasCustomEffect
(PotionEffectType type) Checks for a specific custom potion effect type on this potion.boolean
PotionMeta.removeCustomEffect
(PotionEffectType type) 移除这个药水的一个自定义效果.boolean
PotionMeta.setMainEffect
(PotionEffectType type) 已过时。 -
org.bukkit.potion中PotionEffectType的使用
修饰符和类型字段说明static final PotionEffectType
PotionEffectType.ABSORPTION
Increases the maximum health of an entity with health that cannot be regenerated, but is refilled every 30 seconds.static final PotionEffectType
PotionEffectType.BLINDNESS
Blinds an entity.static final PotionEffectType
PotionEffectType.CONFUSION
Warps vision on the client.static final PotionEffectType
PotionEffectType.DAMAGE_RESISTANCE
Decreases damage dealt to an entity.static final PotionEffectType
PotionEffectType.FAST_DIGGING
Increases dig speed.static final PotionEffectType
PotionEffectType.FIRE_RESISTANCE
Stops fire damage.static final PotionEffectType
PotionEffectType.GLOWING
Outlines the entity so that it can be seen from afar.static final PotionEffectType
PotionEffectType.HARM
Hurts an entity.static final PotionEffectType
PotionEffectType.HEAL
Heals an entity.static final PotionEffectType
PotionEffectType.HEALTH_BOOST
Increases the maximum health of an entity.static final PotionEffectType
PotionEffectType.HUNGER
Increases hunger.static final PotionEffectType
PotionEffectType.INCREASE_DAMAGE
Increases damage dealt.static final PotionEffectType
PotionEffectType.INVISIBILITY
Grants invisibility.static final PotionEffectType
PotionEffectType.JUMP
Increases jump height.static final PotionEffectType
PotionEffectType.LEVITATION
Causes the entity to float into the air.static final PotionEffectType
PotionEffectType.LUCK
Loot table luck.static final PotionEffectType
PotionEffectType.NIGHT_VISION
Allows an entity to see in the dark.static final PotionEffectType
PotionEffectType.POISON
Deals damage to an entity over time.static final PotionEffectType
PotionEffectType.REGENERATION
Regenerates health.static final PotionEffectType
PotionEffectType.SATURATION
Increases the food level of an entity each tick.static final PotionEffectType
PotionEffectType.SLOW
Decreases movement speed.static final PotionEffectType
PotionEffectType.SLOW_DIGGING
Decreases dig speed.static final PotionEffectType
PotionEffectType.SPEED
Increases movement speed.static final PotionEffectType
PotionEffectType.UNLUCK
Loot table unluck.static final PotionEffectType
PotionEffectType.WATER_BREATHING
Allows breathing underwater.static final PotionEffectType
PotionEffectType.WEAKNESS
Decreases damage dealt by an entity.static final PotionEffectType
PotionEffectType.WITHER
Deals damage to an entity over time and gives the health to the shooter.修饰符和类型方法说明static PotionEffectType
PotionEffectType.getById
(int id) 已过时。Magic valuestatic PotionEffectType
Gets the effect type specified by the given name.PotionType.getEffectType()
PotionEffect.getType()
Returns thePotionEffectType
of this effect.PotionEffectTypeWrapper.getType()
Get the potion type bound to this wrapper.static PotionEffectType[]
PotionEffectType.values()
Returns an array of all the registeredPotionEffectType
s.修饰符和类型方法说明PotionBrewer.createEffect
(PotionEffectType potion, int duration, int amplifier) Creates aPotionEffect
from the givenPotionEffectType
, applying duration modifiers and checks.static PotionType
PotionType.getByEffect
(PotionEffectType effectType) 已过时。Misleadingstatic void
PotionEffectType.registerPotionEffectType
(PotionEffectType type) Registers an effect type with the given object.限定符构造器说明PotionEffect
(PotionEffectType type, int duration, int amplifier) Creates a potion effect.PotionEffect
(PotionEffectType type, int duration, int amplifier, boolean ambient) Creates a potion effect.PotionEffect
(PotionEffectType type, int duration, int amplifier, boolean ambient, boolean particles) Creates a potion effect with no defined color.PotionEffect
(PotionEffectType type, int duration, int amplifier, boolean ambient, boolean particles, Color color) Creates a potion effect.
PotionType(org.bukkit.potion.PotionEffectType, boolean, boolean)