Record Class EulerAngle

java.lang.Object
java.lang.Record
net.minecraft.util.math.EulerAngle
Record Components:
pitch -
yaw -
roll -

public record EulerAngle(float pitch, float yaw, float roll) extends Record
Mappings:
Namespace Name
named net/minecraft/util/math/EulerAngle
intermediary net/minecraft/class_2379
official jy
named pitch
intermediary comp_3776
official c
named yaw
intermediary comp_3777
official d
named roll
intermediary comp_3778
official e
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<EulerAngle>
     
     
    private final float
    The field for the pitch record component.
    private final float
    The field for the roll record component.
    private final float
    The field for the yaw record component.
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    EulerAngle(float float2, float float3, float float4)
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the pitch record component.
    float
    Returns the value of the roll record component.
    final String
    Returns a string representation of this record class.
    float
    yaw()
    Returns the value of the yaw record component.

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • pitch Link icon

      private final float pitch
      The field for the pitch record component.
    • yaw Link icon

      private final float yaw
      The field for the yaw record component.
    • roll Link icon

      private final float roll
      The field for the roll record component.
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<EulerAngle> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/util/math/EulerAngle;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_57040 Lnet/minecraft/class_2379;field_57040:Lcom/mojang/serialization/Codec;
      official a Ljy;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC Link icon

      public static final PacketCodec<ByteBuf,EulerAngle> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/util/math/EulerAngle;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48452 Lnet/minecraft/class_2379;field_48452:Lnet/minecraft/class_9139;
      official b Ljy;b:Lze;
  • Constructor Details Link icon

    • EulerAngle Link icon

      public EulerAngle(float float2, float float3, float float4)
  • Method Details Link icon

    • toString Link icon

      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 Link icon

      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 Link icon

      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 '=='.
      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.
    • pitch Link icon

      public float pitch()
      Returns the value of the pitch record component.
      Returns:
      the value of the pitch record component
    • yaw Link icon

      public float yaw()
      Returns the value of the yaw record component.
      Returns:
      the value of the yaw record component
    • roll Link icon

      public float roll()
      Returns the value of the roll record component.
      Returns:
      the value of the roll record component