public class SPEED extends PotionEffectSuper
Movement speed enhancement potion effect that increases the affected player's movement speed.

SPEED applies Minecraft's SPEED potion effect to increase the target player's movement velocity. The effect enhances how quickly the player can move, improving their traversal speed and mobility in combat scenarios. The effect is powered by the Minecraft potion effect system with strength (amplifier) set to 1. The effect is detectable by both mind-reading spells (Legilimens) and information spells (Informous) which report the target "is moving fast".

See Also:
  • Constructor Details

    • SPEED

      public SPEED(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for creating a movement speed enhancement effect.

      Creates a potion effect that increases the target player's movement speed using Minecraft's SPEED potion effect type with strength 1. Sets detection text for both mind-reading spells (Legilimens) and information spells (Informous) to "is moving fast".

      Parameters:
      plugin - a callback to the MC plugin
      duration - the duration in ticks, snapped to min of 2 minutes, max of 5 minutes
      isPermanent - ignored - potion effects cannot be permanent
      pid - the unique ID of the player to enhance with speed
  • Method Details

    • doRemove

      public void doRemove()
      Perform cleanup when the speed effect is removed.

      The default implementation does nothing, as SPEED is a potion effect whose effects are automatically managed by the Minecraft potion system. When the effect expires or is manually removed, the player's movement speed returns to normal.

      Specified by:
      doRemove in class O2Effect