Package net.minecraft.client.sound
Record Class SoundListenerTransform
java.lang.Object
java.lang.Record
net.minecraft.client.sound.SoundListenerTransform
- Record Components:
position-forward-up-
@Environment(CLIENT)
public record SoundListenerTransform(Vec3d position, Vec3d forward, Vec3d up)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/sound/SoundListenerTransformintermediary net/minecraft/class_9054official fvbnamed positionintermediary comp_2165official bnamed forwardintermediary comp_2166official cnamed upintermediary comp_2167official d
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSoundListenerTransform(Vec3d position, Vec3d forward, Vec3d up) Creates an instance of aSoundListenerTransformrecord 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. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/client/sound/SoundListenerTransform;DEFAULT:Lnet/minecraft/client/sound/SoundListenerTransform;intermediary field_47671Lnet/minecraft/class_9054;field_47671:Lnet/minecraft/class_9054;official aLfvb;a:Lfvb;
-
-
Constructor Details
-
Method Details
-
right
- Mappings:
Namespace Name Mixin selector named rightLnet/minecraft/client/sound/SoundListenerTransform;right()Lnet/minecraft/util/math/Vec3d;intermediary method_55586Lnet/minecraft/class_9054;method_55586()Lnet/minecraft/class_243;official aLfvb;a()Lfse;
-
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
-