Class SWELLING
java.lang.Object
net.pottercraft.ollivanders2.effect.O2Effect
net.pottercraft.ollivanders2.effect.PlayerChangeSizeSuper
net.pottercraft.ollivanders2.effect.SWELLING
Size increase effect that enlarges the affected player to double their normal scale.
SWELLING is a debilitating size-alteration effect that increases the target player's scale to 200% of their normal size (scaleMultiplier = 2.0). The affected player appears physically larger in the game world and has an expanded hitbox. The effect is detectable by both mind-reading spells (Legilimens) and information spells (Informous) which report the target "is unnaturally large".
Size Adjustment:
- Scale multiplier: 2.0 (double normal size)
- Effect applies immediately upon casting
- Hitbox scaling: scales proportionally with player size
- Detection text: "is unnaturally large"
- See Also:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionSWELLING(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for creating a size increase effect. -
Method Summary
Methods inherited from class net.pottercraft.ollivanders2.effect.PlayerChangeSizeSuper
checkEffect, doRemove, getScaleMultiplier, isTransformed, startEffectMethods inherited from class net.pottercraft.ollivanders2.effect.O2Effect
age, getAffectedPlayerText, getInformousText, getLegilimensText, getMaxDuration, getMinDuration, getRemainingDuration, getTargetID, isKilled, isPermanent, kill, setPermanent
-
Constructor Details
-
SWELLING
public SWELLING(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid) Constructor for creating a size increase effect.Creates a swelling effect that increases the target player's scale to double their normal size. The effect applies immediately, causing the player to appear physically larger in the game world with a correspondingly expanded hitbox.
- Parameters:
plugin- a callback to the MC pluginduration- the duration of the swelling effect in game ticksisPermanent- is this effect permanent (does not age)pid- the unique ID of the player to enlarge
-