Class LYCANTHROPY_SPEECH


public class LYCANTHROPY_SPEECH extends BABBLING
Wolf-like speech effect that forces a player to vocalize dog and wolf sounds.

LYCANTHROPY_SPEECH is a specialized variant of the BABBLING effect that forces the affected player to make dog and wolf sounds instead of speaking normal speech. Like BABBLING, this effect applies periodic damage and forces the player to speak messages at random intervals. However, LYCANTHROPY_SPEECH uses a custom dictionary of wolf/dog vocalizations (howls, barks, growls, snarls with italic formatting) and is configured as a permanent effect with a maximum of 3 sound messages per damage cycle. This effect is typically applied as a secondary symptom during werewolf transformation when the LYCANTHROPY curse is active.

Mechanism (inherited from BABBLING):

  • Periodic damage applied every 3 seconds with clamped magnitude (0.5-10 health)
  • Forced speech output at random intervals with up to 3 wolf/dog sound messages per damage cycle
  • Custom dog sound dictionary with 4 vocalizations: howl, bark, growl, snarl
  • Permanent effect while active (applied during werewolf transformation)
  • All speech output formatted with italic styling
See Also:
  • Constructor Details

    • LYCANTHROPY_SPEECH

      public LYCANTHROPY_SPEECH(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for creating a wolf-like lycanthropy speech effect.

      Creates an effect that forces the target player to make wolf and dog sounds. Extends the parent BABBLING class with a custom sound dictionary (4 dog vocalizations with italic formatting) and is configured as permanent with a maximum of 3 sounds per speech cycle. Inherits all damage mechanics from BABBLING: periodic damage every 3 seconds with clamped 0.5-10 damage range. This effect is typically applied as a secondary symptom of werewolf transformation during LYCANTHROPY curse activation.

      Parameters:
      plugin - a callback to the MC plugin
      duration - ignored - lycanthropy speech is always permament
      isPermanent - ignored - lycanthropy speech is always permament
      pid - the unique ID of the player to afflict with wolf-like speech
  • Method Details

    • doRemove

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

      The default implementation does nothing, as the lycanthropy speech effect has no persistent state to clean up. When removed, the player regains normal speech ability.

      Overrides:
      doRemove in class BABBLING
    • setPermanent

      public void setPermanent(boolean perm)
      always permanent
      Overrides:
      setPermanent in class O2Effect
      Parameters:
      perm - ignored - this is always true