Class SHRINKING
java.lang.Object
net.pottercraft.ollivanders2.effect.O2Effect
net.pottercraft.ollivanders2.effect.PlayerChangeSizeSuper
net.pottercraft.ollivanders2.effect.SHRINKING
Size reduction effect that shrinks the affected player to half their normal scale.
SHRINKING is a debilitating size-alteration effect that reduces the target player's scale to 50% of their normal size (scaleMultiplier = 0.5). The affected player appears physically smaller in the game world and is subject to reduced hitbox dimensions. The effect is detectable by both mind-reading spells (Legilimens) and information spells (Informous) which report the target "is unnaturally small".
Size Adjustment:
- Scale multiplier: 0.5 (half normal size)
- Effect applies immediately upon casting
- Hitbox scaling: scales proportionally with player size
- Detection text: "is unnaturally small"
- See Also:
-
Field Summary
Fields inherited from class net.pottercraft.ollivanders2.effect.O2Effect
affectedPlayerText, duration, effectType, informousText, kill, legilimensText, p, permanent, targetID -
Constructor Summary
ConstructorsConstructorDescriptionSHRINKING(@NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull UUID pid) Constructor for creating a size reduction 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
-
SHRINKING
public SHRINKING(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid) Constructor for creating a size reduction effect.Creates a shrinking effect that reduces the target player's scale to 50% of their normal size. The effect applies immediately, causing the player to appear physically smaller in the game world with a correspondingly reduced hitbox.
- Parameters:
plugin- a callback to the MC pluginduration- the duration of the shrinking effect in game ticksisPermanent- is this effect permanent (does not age)pid- the unique ID of the player to shrink
-