类的使用
org.bukkit.potion.PotionEffectType
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.用于操作可以存储在
物品堆
的额外数据的接口.代表每种
药水
属性和操作的类的集合.-
org.bukkit中PotionEffectType的使用
-
org.bukkit.block中PotionEffectType的使用
修饰符和类型方法说明void
Beacon.setPrimaryEffect
(@Nullable PotionEffectType effect) 设置信标的主效果, 如要清除则为 null.void
Beacon.setSecondaryEffect
(@Nullable PotionEffectType effect) 设置信标的辅助效果, 如要清除则为 null. -
org.bukkit.entity中PotionEffectType的使用
修饰符和类型方法说明LivingEntity.getPotionEffect
(@NotNull PotionEffectType type) 返回指定类型的有效PotionEffect
.boolean
AreaEffectCloud.hasCustomEffect
(@Nullable PotionEffectType type) 检查这片云中是否存在一种特定的自定义药水效果类型.boolean
Arrow.hasCustomEffect
(@Nullable PotionEffectType type) Checks for a specific custom potion effect type on this arrow.boolean
MushroomCow.hasEffectForNextStew
(@NotNull PotionEffectType type) Checks for a specific custom potion effect type to be applied to the next suspicious stew received from milking thisMushroomCow
.boolean
LivingEntity.hasPotionEffect
(@NotNull PotionEffectType type) 返回生物实体是否已经存在一个指定的PotionEffectType
效果.boolean
AreaEffectCloud.removeCustomEffect
(@NotNull PotionEffectType type) 从这片云移除一个自定义药水效果.boolean
Arrow.removeCustomEffect
(@NotNull PotionEffectType type) Removes a custom potion effect from this arrow.boolean
MushroomCow.removeEffectFromNextStew
(@NotNull PotionEffectType type) Removes a custom potion effect from being applied to the next suspicious stew received from milking thisMushroomCow
.void
LivingEntity.removePotionEffect
(@NotNull PotionEffectType type) 移除当前所有指定的PotionEffectType
效果.void
Player.sendPotionEffectChangeRemove
(@NotNull LivingEntity entity, @NotNull PotionEffectType type) Remove a potion effect for the target entity. -
org.bukkit.event.entity中PotionEffectType的使用
-
org.bukkit.inventory.meta中PotionEffectType的使用
修饰符和类型方法说明boolean
PotionMeta.hasCustomEffect
(@NotNull PotionEffectType type) 检查这个药水是否有指定的药水效果.boolean
SuspiciousStewMeta.hasCustomEffect
(@NotNull PotionEffectType type) 检查这个迷之炖菜是否有指定的药水效果.boolean
PotionMeta.removeCustomEffect
(@NotNull PotionEffectType type) 移除这个药水的一个自定义效果.boolean
SuspiciousStewMeta.removeCustomEffect
(@NotNull PotionEffectType type) 移除这个迷之炖菜的一个自定义效果.boolean
PotionMeta.setMainEffect
(@NotNull PotionEffectType type) 已过时。 -
org.bukkit.potion中PotionEffectType的使用
修饰符和类型字段说明static final PotionEffectType
PotionEffectType.ABSORPTION
伤害吸收.static final PotionEffectType
PotionEffectType.BAD_OMEN
不祥之兆.static final PotionEffectType
PotionEffectType.BLINDNESS
失明.static final PotionEffectType
PotionEffectType.CONDUIT_POWER
潮涌能量.static final PotionEffectType
PotionEffectType.DARKNESS
Causes the player's vision to dim occasionally.static final PotionEffectType
PotionEffectType.DOLPHINS_GRACE
海豚的恩惠.static final PotionEffectType
PotionEffectType.FIRE_RESISTANCE
防火.static final PotionEffectType
PotionEffectType.GLOWING
发光.static final PotionEffectType
PotionEffectType.HASTE
急迫.static final PotionEffectType
PotionEffectType.HEALTH_BOOST
生命提升.static final PotionEffectType
PotionEffectType.HERO_OF_THE_VILLAGE
村庄英雄.static final PotionEffectType
PotionEffectType.HUNGER
饥饿.static final PotionEffectType
PotionEffectType.INFESTED
Chance of spawning silverfish when hurt.static final PotionEffectType
PotionEffectType.INSTANT_DAMAGE
瞬间伤害.static final PotionEffectType
PotionEffectType.INSTANT_HEALTH
瞬间治疗.static final PotionEffectType
PotionEffectType.INVISIBILITY
隐身.static final PotionEffectType
PotionEffectType.JUMP_BOOST
跳跃提升.static final PotionEffectType
PotionEffectType.LEVITATION
漂浮.static final PotionEffectType
PotionEffectType.LUCK
幸运.static final PotionEffectType
PotionEffectType.MINING_FATIGUE
挖掘疲劳.static final PotionEffectType
PotionEffectType.NAUSEA
反胃.static final PotionEffectType
PotionEffectType.NIGHT_VISION
夜视.static final PotionEffectType
PotionEffectType.OOZING
Causes slimes to spawn upon death.static final PotionEffectType
PotionEffectType.POISON
中毒.static final PotionEffectType
PotionEffectType.RAID_OMEN
Triggers a raid when a player enters a village.static final PotionEffectType
PotionEffectType.REGENERATION
生命恢复.static final PotionEffectType
PotionEffectType.RESISTANCE
抗性提升.static final PotionEffectType
PotionEffectType.SATURATION
饱和.static final PotionEffectType
PotionEffectType.SLOW_FALLING
缓降.static final PotionEffectType
PotionEffectType.SLOWNESS
缓慢.static final PotionEffectType
PotionEffectType.SPEED
速度.static final PotionEffectType
PotionEffectType.STRENGTH
力量.static final PotionEffectType
PotionEffectType.TRIAL_OMEN
Causes trial spawners to become ominous.static final PotionEffectType
PotionEffectType.UNLUCK
霉运.static final PotionEffectType
PotionEffectType.WATER_BREATHING
水下呼吸.static final PotionEffectType
PotionEffectType.WEAKNESS
虚弱.static final PotionEffectType
PotionEffectType.WEAVING
Creates cobwebs upon death.static final PotionEffectType
PotionEffectType.WIND_CHARGED
Emits a wind burst upon death.static final PotionEffectType
PotionEffectType.WITHER
凋零.修饰符和类型方法说明static @Nullable PotionEffectType
PotionEffectType.getById
(int id) 已过时。魔法值static @Nullable PotionEffectType
PotionEffectType.getByKey
(@Nullable NamespacedKey key) 已过时。仅为保障向后兼容性, 请使用Registry.get(NamespacedKey)
static @Nullable PotionEffectType
已过时。仅为保障向后兼容性, 请使用Registry.get(NamespacedKey)
PotionType.getEffectType()
已过时。Potions can have multiple effects usePotionType.getPotionEffects()
PotionType.InternalPotionData.getEffectType()
已过时。PotionEffect.getType()
返回此效果的类型.PotionEffectTypeWrapper.getType()
已过时。获取绑定到此包装类的药水效果类型.static @NotNull PotionEffectType[]
PotionEffectType.values()
已过时。请使用Iterable.iterator()
.修饰符和类型方法说明PotionBrewer.createEffect
(@NotNull PotionEffectType potion, int duration, int amplifier) 创建指定类型的药水效果
, 应用指定的时长.static @Nullable PotionType
PotionType.getByEffect
(@Nullable PotionEffectType effectType) 已过时。有误导性限定符构造器说明PotionEffect
(@NotNull PotionEffectType type, int duration, int amplifier) 创建一个药水效果, 使 ambient 为 true.PotionEffect
(@NotNull PotionEffectType type, int duration, int amplifier, boolean ambient) 创建一个药水效果, 使粒子效果可见.PotionEffect
(@NotNull PotionEffectType type, int duration, int amplifier, boolean ambient, boolean particles) 创建一个药水效果, 不定义粒子颜色.PotionEffect
(@NotNull PotionEffectType type, int duration, int amplifier, boolean ambient, boolean particles, boolean icon) 创建一个药水效果.
PotionMeta.setBasePotionType(org.bukkit.potion.PotionType)