Class GlobalScreenShake
java.lang.Object
foundry.veil.api.screenshake.type.ScreenShakeType
foundry.veil.api.screenshake.type.GlobalScreenShake
- Direct Known Subclasses:
LocalScreenShake
A screen shake that affects the player regardless of distance.
- Since:
- 4.5.0
-
Field Summary
Fields inherited from class foundry.veil.api.screenshake.type.ScreenShakeType
ticksRemaining -
Constructor Summary
ConstructorsConstructorDescriptionGlobalScreenShake(gg.moonflower.molangcompiler.api.MolangExpression strengthExpression, int length) GlobalScreenShake(String strengthExpression, int length) -
Method Summary
Modifier and TypeMethodDescriptionprotected floatThe intensity of the screenshake, up to the implementation of theScreenShakeType.Methods inherited from class foundry.veil.api.screenshake.type.ScreenShakeType
age, getPositionOffset, isRemoved, length, remove, tick
-
Constructor Details
-
GlobalScreenShake
public GlobalScreenShake(String strengthExpression, int length) throws gg.moonflower.molangcompiler.api.exception.MolangSyntaxException - Throws:
gg.moonflower.molangcompiler.api.exception.MolangSyntaxException
-
GlobalScreenShake
public GlobalScreenShake(gg.moonflower.molangcompiler.api.MolangExpression strengthExpression, int length)
-
-
Method Details
-
getStrength
protected float getStrength()Description copied from class:ScreenShakeTypeThe intensity of the screenshake, up to the implementation of theScreenShakeType.- Specified by:
getStrengthin classScreenShakeType
-