Record Class DevVRPose

java.lang.Object
java.lang.Record
com.hammy275.immersivemc.common.vr.dev.impl.DevVRPose
All Implemented Interfaces:
org.vivecraft.api.data.VRPose

public record DevVRPose(DevVRBodyPartyData head, DevVRBodyPartyData c0, DevVRBodyPartyData c1) extends Record implements org.vivecraft.api.data.VRPose
  • Constructor Details

    • DevVRPose

      public DevVRPose(DevVRBodyPartyData head, DevVRBodyPartyData c0, DevVRBodyPartyData c1)
      Creates an instance of a DevVRPose record class.
      Parameters:
      head - the value for the head record component
      c0 - the value for the c0 record component
      c1 - the value for the c1 record component
  • Method Details

    • getBodyPartData

      public org.vivecraft.api.data.VRBodyPartData getBodyPartData(org.vivecraft.api.data.VRBodyPart vrBodyPart)
      Specified by:
      getBodyPartData in interface org.vivecraft.api.data.VRPose
    • isSeated

      public boolean isSeated()
      Specified by:
      isSeated in interface org.vivecraft.api.data.VRPose
    • isLeftHanded

      public boolean isLeftHanded()
      Specified by:
      isLeftHanded in interface org.vivecraft.api.data.VRPose
    • getFBTMode

      public org.vivecraft.api.data.FBTMode getFBTMode()
      Specified by:
      getFBTMode in interface org.vivecraft.api.data.VRPose
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • head

      public DevVRBodyPartyData head()
      Returns the value of the head record component.
      Returns:
      the value of the head record component
    • c0

      public DevVRBodyPartyData c0()
      Returns the value of the c0 record component.
      Returns:
      the value of the c0 record component
    • c1

      public DevVRBodyPartyData c1()
      Returns the value of the c1 record component.
      Returns:
      the value of the c1 record component