org.bukkit.potion想写中毒效果,在文档里只看得出持续时间与药水等级,不知道是否能定义伤害
复制代码如果大佬能解释一下另外几个参数的含义就更好了。
- public PotionEffect(PotionEffectType type,
- int duration,
- int amplifier,
- boolean ambient,
- boolean particles,
- Color color)
- Creates a potion effect.
- 参数:
- type - effect type
- duration - measured in ticks, see getDuration()
- amplifier - the amplifier, see getAmplifier()
- ambient - the ambient status, see isAmbient()
- particles - the particle status, see hasParticles()
- color - the particle color, see getColor()