Class SPEED_SPEEDIER
SPEED_SPEEDIER is an enhanced variant of the SPEED effect that applies Minecraft's SPEED potion effect with increased potency (strength 2 instead of 1). This effect produces a much more pronounced speed boost, allowing the player to move at significantly faster velocities than the base SPEED effect. The enhanced movement speed improves traversal capabilities and combat mobility. The effect is detectable by both mind-reading spells (Legilimens) and information spells (Informous) which report the target "is moving very fast".
- See Also:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionSPEED_SPEEDIER(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for creating an enhanced movement speed effect. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoRemove()Perform cleanup when the enhanced speed effect is removed.Methods inherited from class net.pottercraft.ollivanders2.effect.PotionEffectSuper
checkEffect, getPotionEffectType, getStrength, setPermanent, setStrengthMethods inherited from class net.pottercraft.ollivanders2.effect.O2Effect
age, getAffectedPlayerText, getInformousText, getLegilimensText, getMaxDuration, getMinDuration, getRemainingDuration, getTargetID, isKilled, isPermanent, kill
-
Constructor Details
-
SPEED_SPEEDIER
public SPEED_SPEEDIER(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid) Constructor for creating an enhanced movement speed effect.Creates an enhanced potion effect that significantly increases the target player's movement speed using Minecraft's SPEED potion effect type with strength 2 (double the potency of the standard SPEED effect). Sets detection text for both mind-reading spells (Legilimens) and information spells (Informous) to "is moving very fast".
- Parameters:
plugin- a callback to the MC pluginduration- the duration in ticks, snapped to min of 2 minutes, max of 5 minutesisPermanent- ignored - potion effects cannot be permanentpid- the unique ID of the player to enhance with increased speed
-
-
Method Details
-
doRemove
public void doRemove()Perform cleanup when the enhanced speed effect is removed.The default implementation does nothing, as SPEED_SPEEDIER 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.
-