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/SoundListenerTransform
intermediary net/minecraft/class_9054
official eym
named position
intermediary comp_2165
official b
named forward
intermediary comp_2166
official c
named up
intermediary comp_2167
official d
  • Field Details

    • position

      private final Vec3d position
      The field for the position record component.
    • forward

      private final Vec3d forward
      The field for the forward record component.
    • up

      private final Vec3d up
      The field for the up record component.
    • DEFAULT

      public static final SoundListenerTransform DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/client/sound/SoundListenerTransform;DEFAULT:Lnet/minecraft/client/sound/SoundListenerTransform;
      intermediary field_47671 Lnet/minecraft/class_9054;field_47671:Lnet/minecraft/class_9054;
      official a Leym;a:Leym;
  • Constructor Details

    • SoundListenerTransform

      public SoundListenerTransform(Vec3d vec3d, Vec3d vec3d2, Vec3d vec3d3)
  • Method Details

    • right

      public Vec3d right()
      Mappings:
      Namespace Name Mixin selector
      named right Lnet/minecraft/client/sound/SoundListenerTransform;right()Lnet/minecraft/util/math/Vec3d;
      intermediary method_55586 Lnet/minecraft/class_9054;method_55586()Lnet/minecraft/class_243;
      official a Leym;a()Lewh;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • position

      public Vec3d position()
      Returns the value of the position record component.
      Returns:
      the value of the position record component
    • forward

      public Vec3d forward()
      Returns the value of the forward record component.
      Returns:
      the value of the forward record component
    • up

      public Vec3d up()
      Returns the value of the up record component.
      Returns:
      the value of the up record component