Class LocalScreenShake


public class LocalScreenShake extends GlobalScreenShake
Screen shake that originates from a point in the world, strength decreasing with distance.
Since:
4.5.0
  • 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: ScreenShakeType
      The intensity of the screenshake, up to the implementation of the ScreenShakeType.
      Overrides:
      getStrength in class GlobalScreenShake