Enum Class CameraShake

java.lang.Object
java.lang.Enum<CameraShake>
org.geysermc.geyser.api.bedrock.camera.CameraShake
All Implemented Interfaces:
Serializable, Comparable<CameraShake>, Constable

public enum CameraShake extends Enum<CameraShake>
Represents a camera shake instruction. Can be sent in CameraData.shakeCamera(float, float, CameraShake)
  • Enum Constant Details

    • POSITIONAL

      public static final CameraShake POSITIONAL
    • ROTATIONAL

      public static final CameraShake ROTATIONAL
  • Method Details

    • values

      public static CameraShake[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CameraShake valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null