类的使用
org.bukkit.potion.PotionEffectType
使用PotionEffectType的程序包
程序包
说明
用于操作在
世界内的三位像素(方块),包括一些特定的状态.为在
世界内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.用于操作可以被存储在
物品堆的额外数据的接口.代表每种
药水属性和操作的类的集合.-
org.bukkit.block中PotionEffectType的使用
参数类型为PotionEffectType的org.bukkit.block中的方法修饰符和类型方法说明voidBeacon.setPrimaryEffect(PotionEffectType effect) Set the primary effect on this beacon, or null to clear.voidBeacon.setSecondaryEffect(PotionEffectType effect) Set the secondary effect on this beacon, or null to clear. -
org.bukkit.entity中PotionEffectType的使用
参数类型为PotionEffectType的org.bukkit.entity中的方法修饰符和类型方法说明LivingEntity.getPotionEffect(PotionEffectType type) 返回指定类型的有效PotionEffect。booleanAreaEffectCloud.hasCustomEffect(PotionEffectType type) 检查这片云中是否存在一种特定的自定义药水效果类型.booleanTippedArrow.hasCustomEffect(PotionEffectType type) Checks for a specific custom potion effect type on this arrow.booleanLivingEntity.hasPotionEffect(PotionEffectType type) 返回生物实体是否已经存在一个指定的PotionEffectType效果。booleanAreaEffectCloud.removeCustomEffect(PotionEffectType type) 从这片云移除一个自定义药水效果.booleanTippedArrow.removeCustomEffect(PotionEffectType type) Removes a custom potion effect from this arrow.voidLivingEntity.removePotionEffect(PotionEffectType type) 移除当前所有指定的PotionEffectType效果。 -
org.bukkit.inventory.meta中PotionEffectType的使用
修饰符和类型方法说明booleanPotionMeta.hasCustomEffect(PotionEffectType type) Checks for a specific custom potion effect type on this potion.booleanPotionMeta.removeCustomEffect(PotionEffectType type) 移除这个药水的一个自定义效果.booleanPotionMeta.setMainEffect(PotionEffectType type) 已过时。 -
org.bukkit.potion中PotionEffectType的使用
修饰符和类型字段说明static final PotionEffectTypePotionEffectType.ABSORPTIONIncreases the maximum health of an entity with health that cannot be regenerated, but is refilled every 30 seconds.static final PotionEffectTypePotionEffectType.BLINDNESSBlinds an entity.static final PotionEffectTypePotionEffectType.CONFUSIONWarps vision on the client.static final PotionEffectTypePotionEffectType.DAMAGE_RESISTANCEDecreases damage dealt to an entity.static final PotionEffectTypePotionEffectType.FAST_DIGGINGIncreases dig speed.static final PotionEffectTypePotionEffectType.FIRE_RESISTANCEStops fire damage.static final PotionEffectTypePotionEffectType.GLOWINGOutlines the entity so that it can be seen from afar.static final PotionEffectTypePotionEffectType.HARMHurts an entity.static final PotionEffectTypePotionEffectType.HEALHeals an entity.static final PotionEffectTypePotionEffectType.HEALTH_BOOSTIncreases the maximum health of an entity.static final PotionEffectTypePotionEffectType.HUNGERIncreases hunger.static final PotionEffectTypePotionEffectType.INCREASE_DAMAGEIncreases damage dealt.static final PotionEffectTypePotionEffectType.INVISIBILITYGrants invisibility.static final PotionEffectTypePotionEffectType.JUMPIncreases jump height.static final PotionEffectTypePotionEffectType.LEVITATIONCauses the entity to float into the air.static final PotionEffectTypePotionEffectType.LUCKLoot table luck.static final PotionEffectTypePotionEffectType.NIGHT_VISIONAllows an entity to see in the dark.static final PotionEffectTypePotionEffectType.POISONDeals damage to an entity over time.static final PotionEffectTypePotionEffectType.REGENERATIONRegenerates health.static final PotionEffectTypePotionEffectType.SATURATIONIncreases the food level of an entity each tick.static final PotionEffectTypePotionEffectType.SLOWDecreases movement speed.static final PotionEffectTypePotionEffectType.SLOW_DIGGINGDecreases dig speed.static final PotionEffectTypePotionEffectType.SPEEDIncreases movement speed.static final PotionEffectTypePotionEffectType.UNLUCKLoot table unluck.static final PotionEffectTypePotionEffectType.WATER_BREATHINGAllows breathing underwater.static final PotionEffectTypePotionEffectType.WEAKNESSDecreases damage dealt by an entity.static final PotionEffectTypePotionEffectType.WITHERDeals damage to an entity over time and gives the health to the shooter.修饰符和类型方法说明static PotionEffectTypePotionEffectType.getById(int id) 已过时。Magic valuestatic PotionEffectTypeGets the effect type specified by the given name.PotionType.getEffectType()PotionEffect.getType()Returns thePotionEffectTypeof this effect.PotionEffectTypeWrapper.getType()Get the potion type bound to this wrapper.static PotionEffectType[]PotionEffectType.values()Returns an array of all the registeredPotionEffectTypes.参数类型为PotionEffectType的org.bukkit.potion中的方法修饰符和类型方法说明PotionBrewer.createEffect(PotionEffectType potion, int duration, int amplifier) Creates aPotionEffectfrom the givenPotionEffectType, applying duration modifiers and checks.static PotionTypePotionType.getByEffect(PotionEffectType effectType) 已过时。Misleadingstatic voidPotionEffectType.registerPotionEffectType(PotionEffectType type) Registers an effect type with the given object.参数类型为PotionEffectType的org.bukkit.potion中的构造器限定符构造器说明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)