Record Class GeyserCameraPosition

java.lang.Object
java.lang.Record
org.geysermc.geyser.impl.camera.GeyserCameraPosition
All Implemented Interfaces:
org.geysermc.geyser.api.bedrock.camera.CameraPosition

public record GeyserCameraPosition(org.geysermc.geyser.api.bedrock.camera.CameraFade cameraFade, boolean renderPlayerEffects, boolean playerPositionForAudio, org.geysermc.geyser.api.bedrock.camera.CameraEaseType easeType, float easeSeconds, org.cloudburstmc.math.vector.Vector3f position, @org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) int rotationX, int rotationY, org.cloudburstmc.math.vector.Vector3f facingPosition) extends Record implements org.geysermc.geyser.api.bedrock.camera.CameraPosition
  • Nested Class Summary

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

    Constructors
    Constructor
    Description
    GeyserCameraPosition(org.geysermc.geyser.api.bedrock.camera.CameraFade cameraFade, boolean renderPlayerEffects, boolean playerPositionForAudio, org.geysermc.geyser.api.bedrock.camera.CameraEaseType easeType, float easeSeconds, org.cloudburstmc.math.vector.Vector3f position, @org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) int rotationX, int rotationY, org.cloudburstmc.math.vector.Vector3f facingPosition)
    Creates an instance of a GeyserCameraPosition record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.geysermc.geyser.api.bedrock.camera.CameraFade
    Returns the value of the cameraFade record component.
    float
    Returns the value of the easeSeconds record component.
    org.geysermc.geyser.api.bedrock.camera.CameraEaseType
    Returns the value of the easeType record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    org.cloudburstmc.math.vector.Vector3f
    Returns the value of the facingPosition record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the playerPositionForAudio record component.
    org.cloudburstmc.math.vector.Vector3f
    Returns the value of the position record component.
    boolean
    Returns the value of the renderPlayerEffects record component.
    @org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) int
    Returns the value of the rotationX record component.
    int
    Returns the value of the rotationY record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GeyserCameraPosition

      public GeyserCameraPosition(org.geysermc.geyser.api.bedrock.camera.CameraFade cameraFade, boolean renderPlayerEffects, boolean playerPositionForAudio, org.geysermc.geyser.api.bedrock.camera.CameraEaseType easeType, float easeSeconds, org.cloudburstmc.math.vector.Vector3f position, @org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) int rotationX, int rotationY, org.cloudburstmc.math.vector.Vector3f facingPosition)
      Creates an instance of a GeyserCameraPosition record class.
      Parameters:
      cameraFade - the value for the cameraFade record component
      renderPlayerEffects - the value for the renderPlayerEffects record component
      playerPositionForAudio - the value for the playerPositionForAudio record component
      easeType - the value for the easeType record component
      easeSeconds - the value for the easeSeconds record component
      position - the value for the position record component
      rotationX - the value for the rotationX record component
      rotationY - the value for the rotationY record component
      facingPosition - the value for the facingPosition record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • cameraFade

      public org.geysermc.geyser.api.bedrock.camera.CameraFade cameraFade()
      Returns the value of the cameraFade record component.
      Specified by:
      cameraFade in interface org.geysermc.geyser.api.bedrock.camera.CameraPosition
      Returns:
      the value of the cameraFade record component
    • renderPlayerEffects

      public boolean renderPlayerEffects()
      Returns the value of the renderPlayerEffects record component.
      Specified by:
      renderPlayerEffects in interface org.geysermc.geyser.api.bedrock.camera.CameraPosition
      Returns:
      the value of the renderPlayerEffects record component
    • playerPositionForAudio

      public boolean playerPositionForAudio()
      Returns the value of the playerPositionForAudio record component.
      Specified by:
      playerPositionForAudio in interface org.geysermc.geyser.api.bedrock.camera.CameraPosition
      Returns:
      the value of the playerPositionForAudio record component
    • easeType

      public org.geysermc.geyser.api.bedrock.camera.CameraEaseType easeType()
      Returns the value of the easeType record component.
      Specified by:
      easeType in interface org.geysermc.geyser.api.bedrock.camera.CameraPosition
      Returns:
      the value of the easeType record component
    • easeSeconds

      public float easeSeconds()
      Returns the value of the easeSeconds record component.
      Specified by:
      easeSeconds in interface org.geysermc.geyser.api.bedrock.camera.CameraPosition
      Returns:
      the value of the easeSeconds record component
    • position

      public org.cloudburstmc.math.vector.Vector3f position()
      Returns the value of the position record component.
      Specified by:
      position in interface org.geysermc.geyser.api.bedrock.camera.CameraPosition
      Returns:
      the value of the position record component
    • rotationX

      public @org.checkerframework.common.value.qual.IntRange(from=-90L, to=90L) int rotationX()
      Returns the value of the rotationX record component.
      Specified by:
      rotationX in interface org.geysermc.geyser.api.bedrock.camera.CameraPosition
      Returns:
      the value of the rotationX record component
    • rotationY

      public int rotationY()
      Returns the value of the rotationY record component.
      Specified by:
      rotationY in interface org.geysermc.geyser.api.bedrock.camera.CameraPosition
      Returns:
      the value of the rotationY record component
    • facingPosition

      public org.cloudburstmc.math.vector.Vector3f facingPosition()
      Returns the value of the facingPosition record component.
      Specified by:
      facingPosition in interface org.geysermc.geyser.api.bedrock.camera.CameraPosition
      Returns:
      the value of the facingPosition record component