Package net.minecraft.client.util.math
Record Class Vector2f
java.lang.Object
java.lang.Record
net.minecraft.client.util.math.Vector2f
- Record Components:
x-y-
- Mappings:
Namespace Name named net/minecraft/client/util/math/Vector2fintermediary net/minecraft/class_5611official hdtnamed xintermediary comp_5231official anamed yintermediary comp_5232official b
-
Field Summary
Fields -
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.static longmethod_76640(float float2, float float3) static floatmethod_76641(long long2) static floatmethod_76642(long long2) toString()Returns a string representation of this record class.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.
-
Field Details
-
Constructor Details
-
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. -
method_76640
public static long method_76640(float float2, float float3) - Mappings:
Namespace Name Mixin selector named method_76640Lnet/minecraft/client/util/math/Vector2f;method_76640(FF)Jintermediary method_76640Lnet/minecraft/class_5611;method_76640(FF)Jofficial aLhdt;a(FF)J
-
method_76641
public static float method_76641(long long2) - Mappings:
Namespace Name Mixin selector named method_76641Lnet/minecraft/client/util/math/Vector2f;method_76641(J)Fintermediary method_76641Lnet/minecraft/class_5611;method_76641(J)Fofficial aLhdt;a(J)F
-
method_76642
public static float method_76642(long long2) - Mappings:
Namespace Name Mixin selector named method_76642Lnet/minecraft/client/util/math/Vector2f;method_76642(J)Fintermediary method_76642Lnet/minecraft/class_5611;method_76642(J)Fofficial bLhdt;b(J)F
-
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 '=='. -
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-