Package net.minecraft.util.math
Record Class EulerAngle
java.lang.Object
java.lang.Record
net.minecraft.util.math.EulerAngle
- Record Components:
pitch-yaw-roll-
- Mappings:
Namespace Name named net/minecraft/util/math/EulerAngleintermediary net/minecraft/class_2379official jynamed pitchintermediary comp_3776official cnamed yawintermediary comp_3777official dnamed rollintermediary comp_3778official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EulerAngle> static final PacketCodec<ByteBuf, EulerAngle> private final floatThe field for thepitchrecord component.private final floatThe field for therollrecord component.private final floatThe field for theyawrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatpitch()Returns the value of thepitchrecord component.floatroll()Returns the value of therollrecord component.final StringtoString()Returns a string representation of this record class.floatyaw()Returns the value of theyawrecord component.
-
Field Details
-
pitch
private final float pitchThe field for thepitchrecord component. -
yaw
private final float yawThe field for theyawrecord component. -
roll
private final float rollThe field for therollrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/util/math/EulerAngle;CODEC:Lcom/mojang/serialization/Codec;intermediary field_57040Lnet/minecraft/class_2379;field_57040:Lcom/mojang/serialization/Codec;official aLjy;a:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/util/math/EulerAngle;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_48452Lnet/minecraft/class_2379;field_48452:Lnet/minecraft/class_9139;official bLjy;b:Lze;
-
-
Constructor Details
-
EulerAngle
public EulerAngle(float float2, float float3, float float4)
-
-
Method Details
-
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 with '=='. -
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
roll
public float roll()Returns the value of therollrecord component.- Returns:
- the value of the
rollrecord component
-