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 aListenerTransform
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.forward()
Returns the value of theforward
record component.final int
hashCode()
Returns a hash code value for this object.position()
Returns the value of theposition
record component.right()
final String
toString()
Returns a string representation of this record class.up()
Returns the value of theup
record component.
-
Field Details
-
position
The field for theposition
record component. -
forward
The field for theforward
record component. -
up
The field for theup
record component. -
INITIAL
-
-
Constructor Details
-
ListenerTransform
Creates an instance of aListenerTransform
record class.- Parameters:
position
- the value for theposition
record componentforward
- the value for theforward
record componentup
- the value for theup
record 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 theposition
record component.- Returns:
- the value of the
position
record component
-
forward
Returns the value of theforward
record component.- Returns:
- the value of the
forward
record component
-
up
Returns the value of theup
record component.- Returns:
- the value of the
up
record component
-