Class LocalScreenShake
java.lang.Object
foundry.veil.api.screenshake.type.ScreenShakeType
foundry.veil.api.screenshake.type.GlobalScreenShake
foundry.veil.api.screenshake.type.LocalScreenShake
Screen shake that originates from a point in the world, strength decreasing with distance.
- Since:
- 4.5.0
-
Field Summary
Fields inherited from class foundry.veil.api.screenshake.type.ScreenShakeType
ticksRemaining -
Constructor Summary
ConstructorsConstructorDescriptionLocalScreenShake(gg.moonflower.molangcompiler.api.MolangExpression expression, net.minecraft.world.phys.Vec3 position, int length, float radius, Easing falloff) LocalScreenShake(String expression, net.minecraft.world.phys.Vec3 position, int length, float radius, Easing falloff) -
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
-
LocalScreenShake
public LocalScreenShake(String expression, net.minecraft.world.phys.Vec3 position, int length, float radius, Easing falloff) throws gg.moonflower.molangcompiler.api.exception.MolangSyntaxException - Throws:
gg.moonflower.molangcompiler.api.exception.MolangSyntaxException
-
LocalScreenShake
public LocalScreenShake(gg.moonflower.molangcompiler.api.MolangExpression expression, net.minecraft.world.phys.Vec3 position, int length, float radius, Easing falloff)
-
-
Method Details
-
getStrength
protected float getStrength()Description copied from class:ScreenShakeTypeThe intensity of the screenshake, up to the implementation of theScreenShakeType.- Overrides:
getStrengthin classGlobalScreenShake
-