Package com.mojang.blaze3d.audio
Record Class ListenerTransform
java.lang.Object
java.lang.Record
com.mojang.blaze3d.audio.ListenerTransform
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionListenerTransform(Vec3 position, Vec3 forward, Vec3 up) Creates an instance of aListenerTransformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.forward()Returns the value of theforwardrecord component.final inthashCode()Returns a hash code value for this object.position()Returns the value of thepositionrecord component.right()final StringtoString()Returns a string representation of this record class.up()Returns the value of theuprecord component.
-
Field Details
-
position
The field for thepositionrecord component. -
forward
The field for theforwardrecord component. -
up
The field for theuprecord component. -
INITIAL
-
-
Constructor Details
-
ListenerTransform
Creates an instance of aListenerTransformrecord class.- Parameters:
position- the value for thepositionrecord componentforward- the value for theforwardrecord componentup- the value for theuprecord component
-
-
Method Details
-
right
-
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. -
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. -
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). -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
forward
Returns the value of theforwardrecord component.- Returns:
- the value of the
forwardrecord component
-
up
Returns the value of theuprecord component.- Returns:
- the value of the
uprecord component
-