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 official enyintermediary net/minecraft/class_9054named net/minecraft/client/sound/SoundListenerTransformofficial bintermediary comp_2165named positionofficial cintermediary comp_2166named forwardofficial dintermediary comp_2167named up
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 official aLeny;a:Leny;intermediary field_47671Lnet/minecraft/class_9054;field_47671:Lnet/minecraft/class_9054;named DEFAULTLnet/minecraft/client/sound/SoundListenerTransform;DEFAULT:Lnet/minecraft/client/sound/SoundListenerTransform;
-
-
Constructor Details
-
SoundListenerTransform
-
-
Method Details
-
right
- Mappings:
Namespace Name Mixin selector official aLeny;a()Lelt;intermediary method_55586Lnet/minecraft/class_9054;method_55586()Lnet/minecraft/class_243;named rightLnet/minecraft/client/sound/SoundListenerTransform;right()Lnet/minecraft/util/math/Vec3d;
-
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
-