Record Class Vector2f

java.lang.Object
java.lang.Record
net.minecraft.client.util.math.Vector2f
Record Components:
x -
y -

@Environment(CLIENT) public record Vector2f(float x, float y) extends Record
Mappings:
Namespace Name
named net/minecraft/client/util/math/Vector2f
intermediary net/minecraft/class_5611
official hdt
named x
intermediary comp_5231
official a
named y
intermediary comp_5232
official b
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the x record component.
    private final float
    The field for the y record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Vector2f(float x, float y)
    Creates an instance of a Vector2f record class.
  • Method Summary

    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.
    static long
    method_76640(float float2, float float3)
     
    static float
    method_76641(long long2)
     
    static float
    method_76642(long long2)
     
    Returns a string representation of this record class.
    float
    x()
    Returns the value of the x record component.
    float
    y()
    Returns the value of the y record component.

    Methods inherited from class java.lang.Object

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

    • x

      private final float x
      The field for the x record component.
    • y

      private final float y
      The field for the y record component.
  • Constructor Details

    • Vector2f

      public Vector2f(float x, float y)
      Creates an instance of a Vector2f record class.
      Parameters:
      x - the value for the x record component
      y - the value for the y record component
  • Method Details

    • toString

      public 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
    • method_76640

      public static long method_76640(float float2, float float3)
      Mappings:
      Namespace Name Mixin selector
      named method_76640 Lnet/minecraft/client/util/math/Vector2f;method_76640(FF)J
      intermediary method_76640 Lnet/minecraft/class_5611;method_76640(FF)J
      official a Lhdt;a(FF)J
    • method_76641

      public static float method_76641(long long2)
      Mappings:
      Namespace Name Mixin selector
      named method_76641 Lnet/minecraft/client/util/math/Vector2f;method_76641(J)F
      intermediary method_76641 Lnet/minecraft/class_5611;method_76641(J)F
      official a Lhdt;a(J)F
    • method_76642

      public static float method_76642(long long2)
      Mappings:
      Namespace Name Mixin selector
      named method_76642 Lnet/minecraft/client/util/math/Vector2f;method_76642(J)F
      intermediary method_76642 Lnet/minecraft/class_5611;method_76642(J)F
      official b Lhdt;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.
      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 '=='.
      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.
    • x

      public float x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

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