Class LYCANTHROPY_SPEECH
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:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.BABBLING
dictionaryFields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionLYCANTHROPY_SPEECH(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for creating a wolf-like lycanthropy speech effect. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoRemove()Perform cleanup when the lycanthropy speech effect is removed.voidsetPermanent(boolean perm) always permanentMethods inherited from class net.pottercraft.ollivanders2.effect.BABBLING
checkEffectMethods inherited from class net.pottercraft.ollivanders2.effect.O2Effect
age, getAffectedPlayerText, getInformousText, getLegilimensText, getMaxDuration, getMinDuration, getRemainingDuration, getTargetID, isKilled, isPermanent, kill
-
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 pluginduration- ignored - lycanthropy speech is always permamentisPermanent- ignored - lycanthropy speech is always permamentpid- 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.
-
setPermanent
public void setPermanent(boolean perm) always permanent- Overrides:
setPermanentin classO2Effect- Parameters:
perm- ignored - this is always true
-