Class ScreenShaker

java.lang.Object
net.frozenblock.lib.screenshake.api.client.ScreenShaker

@Environment(CLIENT) public class ScreenShaker extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addShake(net.minecraft.client.multiplayer.ClientLevel level, float intensity, int duration, int falloffStart, net.minecraft.world.phys.Vec3 pos, float maxDistance, int ticks)
     
    static void
    addShake(net.minecraft.world.entity.Entity entity, float intensity, int duration, int falloffStart, float maxDistance, int ticks)
     
    static void
    cameraShake(@NotNull net.minecraft.client.Camera camera, float partialTicks)
    Deprecated.
    static float
    cameraZ(float partialTicks)
    Deprecated.
    static void
     
    static void
    shake(@NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, float partialTicks)
     
    static void
    tick(@NotNull net.minecraft.client.multiplayer.ClientLevel level)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ScreenShaker

      public ScreenShaker()
  • Method Details

    • tick

      public static void tick(@NotNull @NotNull net.minecraft.client.multiplayer.ClientLevel level)
    • shake

      public static void shake(@NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, float partialTicks)
    • cameraZ

      @Deprecated public static float cameraZ(float partialTicks)
      Deprecated.
    • cameraShake

      @Deprecated public static void cameraShake(@NotNull @NotNull net.minecraft.client.Camera camera, float partialTicks)
      Deprecated.
    • addShake

      public static void addShake(net.minecraft.client.multiplayer.ClientLevel level, float intensity, int duration, int falloffStart, net.minecraft.world.phys.Vec3 pos, float maxDistance, int ticks)
    • addShake

      public static void addShake(net.minecraft.world.entity.Entity entity, float intensity, int duration, int falloffStart, float maxDistance, int ticks)
    • clear

      public static void clear()