Class ScreenShakeManager.ScreenShake

java.lang.Object
net.frozenblock.lib.screenshake.api.ScreenShakeManager.ScreenShake
Enclosing class:
ScreenShakeManager

public static class ScreenShakeManager.ScreenShake extends Object
  • Field Details

    • duration

      public final int duration
    • pos

      protected net.minecraft.world.phys.Vec3 pos
    • maxDistance

      public final float maxDistance
    • ticks

      public int ticks
    • trackingPlayers

      public List<net.minecraft.server.level.ServerPlayer> trackingPlayers
    • chunkPos

      public final net.minecraft.world.level.ChunkPos chunkPos
    • CODEC

      public static final com.mojang.serialization.Codec<ScreenShakeManager.ScreenShake> CODEC
  • Constructor Details

    • ScreenShake

      public ScreenShake(float intensity, int duration, int durationFalloffStart, net.minecraft.world.phys.Vec3 pos, float maxDistance, int ticks)
  • Method Details

    • shouldRemove

      public boolean shouldRemove()
    • getIntensity

      public float getIntensity()
    • getDuration

      public int getDuration()
    • getDurationFalloffStart

      public int getDurationFalloffStart()
    • getPos

      public net.minecraft.world.phys.Vec3 getPos()
    • getMaxDistance

      public float getMaxDistance()
    • getTicks

      public int getTicks()