Record Class DevVRBodyPartyData
java.lang.Object
java.lang.Record
com.hammy275.immersivemc.common.vr.dev.impl.DevVRBodyPartyData
- All Implemented Interfaces:
org.vivecraft.api.data.VRBodyPartData
public record DevVRBodyPartyData(net.minecraft.world.phys.Vec3 pos, net.minecraft.world.phys.Vec3 rot)
extends Record
implements org.vivecraft.api.data.VRBodyPartData
-
Constructor Summary
ConstructorsConstructorDescriptionDevVRBodyPartyData(net.minecraft.world.phys.Vec3 pos, net.minecraft.world.phys.Vec3 rot) Creates an instance of aDevVRBodyPartyDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.phys.Vec3getDir()doublegetPitch()net.minecraft.world.phys.Vec3getPos()doublegetRoll()org.joml.QuaternionfcdoublegetYaw()final inthashCode()Returns a hash code value for this object.net.minecraft.world.phys.Vec3pos()Returns the value of theposrecord component.net.minecraft.world.phys.Vec3rot()Returns the value of therotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DevVRBodyPartyData
public DevVRBodyPartyData(net.minecraft.world.phys.Vec3 pos, net.minecraft.world.phys.Vec3 rot) Creates an instance of aDevVRBodyPartyDatarecord class.- Parameters:
pos- the value for theposrecord componentrot- the value for therotrecord component
-
-
Method Details
-
getPos
public net.minecraft.world.phys.Vec3 getPos()- Specified by:
getPosin interfaceorg.vivecraft.api.data.VRBodyPartData
-
getDir
public net.minecraft.world.phys.Vec3 getDir()- Specified by:
getDirin interfaceorg.vivecraft.api.data.VRBodyPartData
-
getPitch
public double getPitch()- Specified by:
getPitchin interfaceorg.vivecraft.api.data.VRBodyPartData
-
getYaw
public double getYaw()- Specified by:
getYawin interfaceorg.vivecraft.api.data.VRBodyPartData
-
getRoll
public double getRoll()- Specified by:
getRollin interfaceorg.vivecraft.api.data.VRBodyPartData
-
getRotation
public org.joml.Quaternionfc getRotation()- Specified by:
getRotationin interfaceorg.vivecraft.api.data.VRBodyPartData
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
pos
public net.minecraft.world.phys.Vec3 pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
rot
public net.minecraft.world.phys.Vec3 rot()Returns the value of therotrecord component.- Returns:
- the value of the
rotrecord component
-