Class GlobalScreenShake

java.lang.Object
foundry.veil.api.screenshake.type.ScreenShakeType
foundry.veil.api.screenshake.type.GlobalScreenShake
Direct Known Subclasses:
LocalScreenShake

public class GlobalScreenShake extends ScreenShakeType
A screen shake that affects the player regardless of distance.
Since:
4.5.0
  • 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: ScreenShakeType
      The intensity of the screenshake, up to the implementation of the ScreenShakeType.
      Specified by:
      getStrength in class ScreenShakeType