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.static floatgetX(long x) static floatgetY(long y) final inthashCode()Returns a hash code value for this object.static longtoLong(float x, float y) 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. -
toLong
public static long toLong(float x, float y) - Mappings:
Namespace Name Mixin selector named toLongLnet/minecraft/client/util/math/Vector2f;toLong(FF)Jintermediary method_76640Lnet/minecraft/class_5611;method_76640(FF)Jofficial aLhdt;a(FF)J
-
getX
public static float getX(long x) - Mappings:
Namespace Name Mixin selector named getXLnet/minecraft/client/util/math/Vector2f;getX(J)Fintermediary method_76641Lnet/minecraft/class_5611;method_76641(J)Fofficial aLhdt;a(J)F
-
getY
public static float getY(long y) - Mappings:
Namespace Name Mixin selector named getYLnet/minecraft/client/util/math/Vector2f;getY(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
-