Class CameraShakeEffect

java.lang.Object
com.hypixel.hytale.server.core.asset.type.camera.CameraEffect
com.hypixel.hytale.builtin.adventure.camera.asset.cameraeffect.CameraShakeEffect
All Implemented Interfaces:
JsonAsset<String>, JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, CameraEffect>>

public class CameraShakeEffect extends CameraEffect
A class that represents the camera shake effect, which is a camera effect for camera configuration.
  • Field Details

  • Constructor Details

    • CameraShakeEffect

      public CameraShakeEffect()
  • Method Details

    • getAccumulationMode

      @Nonnull public AccumulationMode getAccumulationMode()
      Returns:
      the accumulation mode of this configuration, or the default value if not configured.
    • getDefaultIntensityContext

      public float getDefaultIntensityContext()
      Returns:
      the intensity context of this configuration, or the default value if not configured.
    • calculateIntensity

      public float calculateIntensity(float intensityContext)
      Called to calculate the intensity of this configuration based on the given context.
      Parameters:
      intensityContext - The provided intensity context.
      Returns:
      the calculated intensity based on the given context.
    • createCameraShakePacket

      @Nonnull public CameraShakeEffect createCameraShakePacket()
      Specified by:
      createCameraShakePacket in class CameraEffect
      Returns:
      a newly created packet based on the camera effect type.
    • createCameraShakePacket

      @Nonnull public CameraShakeEffect createCameraShakePacket(float intensityContext)
      Specified by:
      createCameraShakePacket in class CameraEffect
      Parameters:
      intensityContext - The intensity context provided.
      Returns:
      a newly created packet based on the camera effect type and provided intensity context.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object