类的使用
org.bukkit.potion.PotionEffectType
使用PotionEffectType的程序包
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界内的三位像素(方块),包括一些特定的状态.为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.用于操作可以存储在
物品堆的额外数据的接口.All classes related to effects from the Consumable Component.
Package for
InventoryView child interfaces that
house further usability for InventoryView.代表每种
药水属性和操作的类的集合.-
org.bukkit中PotionEffectType的使用
类型参数类型为PotionEffectType的org.bukkit中的字段 -
org.bukkit.block中PotionEffectType的使用
参数类型为PotionEffectType的org.bukkit.block中的方法修饰符和类型方法说明voidBeacon.setPrimaryEffect(@Nullable PotionEffectType effect) 设置信标的主效果, 如要清除则为 null.voidBeacon.setSecondaryEffect(@Nullable PotionEffectType effect) 设置信标的辅助效果, 如要清除则为 null. -
org.bukkit.entity中PotionEffectType的使用
参数类型为PotionEffectType的org.bukkit.entity中的方法修饰符和类型方法说明LivingEntity.getPotionEffect(@NotNull PotionEffectType type) 返回指定类型的有效PotionEffect.booleanAreaEffectCloud.hasCustomEffect(@Nullable PotionEffectType type) 检查这片云中是否存在一种特定的自定义药水效果类型.booleanArrow.hasCustomEffect(@Nullable PotionEffectType type) Checks for a specific custom potion effect type on this arrow.booleanMushroomCow.hasEffectForNextStew(@NotNull PotionEffectType type) Checks for a specific custom potion effect type to be applied to the next suspicious stew received from milking thisMushroomCow.booleanLivingEntity.hasPotionEffect(@NotNull PotionEffectType type) 返回生物实体是否已经存在一个指定的PotionEffectType效果.booleanAreaEffectCloud.removeCustomEffect(@NotNull PotionEffectType type) 从这片云移除一个自定义药水效果.booleanArrow.removeCustomEffect(@NotNull PotionEffectType type) Removes a custom potion effect from this arrow.booleanMushroomCow.removeEffectFromNextStew(@NotNull PotionEffectType type) Removes a custom potion effect from being applied to the next suspicious stew received from milking thisMushroomCow.voidLivingEntity.removePotionEffect(@NotNull PotionEffectType type) 移除当前所有指定的PotionEffectType效果.voidPlayer.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的使用
修饰符和类型方法说明booleanPotionMeta.hasCustomEffect(@NotNull PotionEffectType type) 检查这个药水是否有指定的药水效果.booleanSuspiciousStewMeta.hasCustomEffect(@NotNull PotionEffectType type) 检查这个迷之炖菜是否有指定的药水效果.booleanPotionMeta.removeCustomEffect(@NotNull PotionEffectType type) 移除这个药水的一个自定义效果.booleanSuspiciousStewMeta.removeCustomEffect(@NotNull PotionEffectType type) 移除这个迷之炖菜的一个自定义效果.booleanPotionMeta.setMainEffect(@NotNull PotionEffectType type) 已过时。 -
org.bukkit.inventory.meta.components.consumable.effects中PotionEffectType的使用
修饰符和类型方法说明ConsumableRemoveEffect.addEffectType(@NotNull PotionEffectType effect) Adds an effect which may be applied by this item when consumed.修饰符和类型方法说明ConsumableRemoveEffect.getEffectTypes()Gets the effects which may be removed by this item when consumed.修饰符和类型方法说明ConsumableRemoveEffect.addEffectType(@NotNull PotionEffectType effect) Adds an effect which may be applied by this item when consumed.修饰符和类型方法说明voidConsumableRemoveEffect.setEffectTypes(@NotNull List<PotionEffectType> effects) Sets the effects which may be removed by this item when consumed. -
org.bukkit.inventory.view中PotionEffectType的使用
修饰符和类型方法说明BeaconView.getPrimaryEffect()Gets the primary effect of the beacon.BeaconView.getSecondaryEffect()Gets the secondary effect of the beacon.修饰符和类型方法说明voidBeaconView.setPrimaryEffect(@Nullable PotionEffectType effect) Sets the primary effect of the beacon, or null to clearvoidBeaconView.setSecondaryEffect(@Nullable PotionEffectType effect) Sets the secondary effect on this beacon, or null to clear. -
org.bukkit.potion中PotionEffectType的使用
修饰符和类型字段说明static final PotionEffectTypePotionEffectType.ABSORPTION伤害吸收.static final PotionEffectTypePotionEffectType.BAD_OMEN不祥之兆.static final PotionEffectTypePotionEffectType.BLINDNESS失明.static final PotionEffectTypePotionEffectType.CONDUIT_POWER潮涌能量.static final PotionEffectTypePotionEffectType.DARKNESS黑暗static final PotionEffectTypePotionEffectType.DOLPHINS_GRACE海豚的恩惠.static final PotionEffectTypePotionEffectType.FIRE_RESISTANCE防火.static final PotionEffectTypePotionEffectType.GLOWING发光.static final PotionEffectTypePotionEffectType.HASTE急迫.static final PotionEffectTypePotionEffectType.HEALTH_BOOST生命提升.static final PotionEffectTypePotionEffectType.HERO_OF_THE_VILLAGE村庄英雄.static final PotionEffectTypePotionEffectType.HUNGER饥饿.static final PotionEffectTypePotionEffectType.INFESTED寄生static final PotionEffectTypePotionEffectType.INSTANT_DAMAGE瞬间伤害.static final PotionEffectTypePotionEffectType.INSTANT_HEALTH瞬间治疗.static final PotionEffectTypePotionEffectType.INVISIBILITY隐身.static final PotionEffectTypePotionEffectType.JUMP_BOOST跳跃提升.static final PotionEffectTypePotionEffectType.LEVITATION漂浮.static final PotionEffectTypePotionEffectType.LUCK幸运.static final PotionEffectTypePotionEffectType.MINING_FATIGUE挖掘疲劳.static final PotionEffectTypePotionEffectType.NAUSEA反胃.static final PotionEffectTypePotionEffectType.NIGHT_VISION夜视.static final PotionEffectTypePotionEffectType.OOZING渗浆static final PotionEffectTypePotionEffectType.POISON中毒.static final PotionEffectTypePotionEffectType.RAID_OMEN袭击之兆static final PotionEffectTypePotionEffectType.REGENERATION生命恢复.static final PotionEffectTypePotionEffectType.RESISTANCE抗性提升.static final PotionEffectTypePotionEffectType.SATURATION饱和.static final PotionEffectTypePotionEffectType.SLOW_FALLING缓降.static final PotionEffectTypePotionEffectType.SLOWNESS缓慢.static final PotionEffectTypePotionEffectType.SPEED速度.static final PotionEffectTypePotionEffectType.STRENGTH力量.static final PotionEffectTypePotionEffectType.TRIAL_OMEN试炼之兆static final PotionEffectTypePotionEffectType.UNLUCK霉运.static final PotionEffectTypePotionEffectType.WATER_BREATHING水下呼吸.static final PotionEffectTypePotionEffectType.WEAKNESS虚弱.static final PotionEffectTypePotionEffectType.WEAVING盘丝static final PotionEffectTypePotionEffectType.WIND_CHARGED蓄风static final PotionEffectTypePotionEffectType.WITHER凋零.修饰符和类型方法说明static @Nullable PotionEffectTypePotionEffectType.getById(int id) 已过时。魔法值static @Nullable PotionEffectTypePotionEffectType.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().参数类型为PotionEffectType的org.bukkit.potion中的方法修饰符和类型方法说明PotionBrewer.createEffect(@NotNull PotionEffectType potion, int duration, int amplifier) 创建指定类型的药水效果, 应用指定的时长.static @Nullable PotionTypePotionType.getByEffect(@Nullable PotionEffectType effectType) 已过时。有误导性参数类型为PotionEffectType的org.bukkit.potion中的构造器限定符构造器说明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)