Class Vector4f

java.lang.Object
net.minecraft.util.math.Vector4f

public class Vector4f extends Object
Implementation Note:
Even though this is used only on the client, it accesses protected fields from Matrix4f, which requires them to be in the same package.
Mappings:
Namespace Name
official l
intermediary net/minecraft/class_1162
named net/minecraft/util/math/Vector4f
  • Field Details

    • x

      private float x
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a:F
      intermediary field_21486 Lnet/minecraft/class_1162;field_21486:F
      named x Lnet/minecraft/util/math/Vector4f;x:F
    • y

      private float y
      Mappings:
      Namespace Name Mixin selector
      official b Ll;b:F
      intermediary field_21487 Lnet/minecraft/class_1162;field_21487:F
      named y Lnet/minecraft/util/math/Vector4f;y:F
    • z

      private float z
      Mappings:
      Namespace Name Mixin selector
      official c Ll;c:F
      intermediary field_21488 Lnet/minecraft/class_1162;field_21488:F
      named z Lnet/minecraft/util/math/Vector4f;z:F
    • w

      private float w
      Mappings:
      Namespace Name Mixin selector
      official d Ll;d:F
      intermediary field_21489 Lnet/minecraft/class_1162;field_21489:F
      named w Lnet/minecraft/util/math/Vector4f;w:F
  • Constructor Details

    • Vector4f

      public Vector4f()
    • Vector4f

      public Vector4f(float x, float y, float z, float w)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ll;<init>(FFFF)V
      intermediary <init> Lnet/minecraft/class_1162;<init>(FFFF)V
      named <init> Lnet/minecraft/util/math/Vector4f;<init>(FFFF)V
    • Vector4f

      public Vector4f(Vec3f vector)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ll;<init>(Lk;)V
      intermediary <init> Lnet/minecraft/class_1162;<init>(Lnet/minecraft/class_1160;)V
      named <init> Lnet/minecraft/util/math/Vector4f;<init>(Lnet/minecraft/util/math/Vec3f;)V
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Ll;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1162;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/math/Vector4f;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getX

      public float getX()
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a()F
      intermediary method_4953 Lnet/minecraft/class_1162;method_4953()F
      named getX Lnet/minecraft/util/math/Vector4f;getX()F
    • getY

      public float getY()
      Mappings:
      Namespace Name Mixin selector
      official b Ll;b()F
      intermediary method_4956 Lnet/minecraft/class_1162;method_4956()F
      named getY Lnet/minecraft/util/math/Vector4f;getY()F
    • getZ

      public float getZ()
      Mappings:
      Namespace Name Mixin selector
      official c Ll;c()F
      intermediary method_4957 Lnet/minecraft/class_1162;method_4957()F
      named getZ Lnet/minecraft/util/math/Vector4f;getZ()F
    • getW

      public float getW()
      Mappings:
      Namespace Name Mixin selector
      official d Ll;d()F
      intermediary method_23853 Lnet/minecraft/class_1162;method_23853()F
      named getW Lnet/minecraft/util/math/Vector4f;getW()F
    • multiply

      public void multiply(float value)
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a(F)V
      intermediary method_35927 Lnet/minecraft/class_1162;method_35927(F)V
      named multiply Lnet/minecraft/util/math/Vector4f;multiply(F)V
    • multiplyComponentwise

      public void multiplyComponentwise(Vec3f vector)
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a(Lk;)V
      intermediary method_4954 Lnet/minecraft/class_1162;method_4954(Lnet/minecraft/class_1160;)V
      named multiplyComponentwise Lnet/minecraft/util/math/Vector4f;multiplyComponentwise(Lnet/minecraft/util/math/Vec3f;)V
    • set

      public void set(float x, float y, float z, float w)
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a(FFFF)V
      intermediary method_23851 Lnet/minecraft/class_1162;method_23851(FFFF)V
      named set Lnet/minecraft/util/math/Vector4f;set(FFFF)V
    • add

      public void add(float x, float y, float z, float w)
      Mappings:
      Namespace Name Mixin selector
      official b Ll;b(FFFF)V
      intermediary method_35929 Lnet/minecraft/class_1162;method_35929(FFFF)V
      named add Lnet/minecraft/util/math/Vector4f;add(FFFF)V
    • dotProduct

      public float dotProduct(Vector4f other)
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a(Ll;)F
      intermediary method_23217 Lnet/minecraft/class_1162;method_23217(Lnet/minecraft/class_1162;)F
      named dotProduct Lnet/minecraft/util/math/Vector4f;dotProduct(Lnet/minecraft/util/math/Vector4f;)F
    • normalize

      public boolean normalize()
      Mappings:
      Namespace Name Mixin selector
      official e Ll;e()Z
      intermediary method_23218 Lnet/minecraft/class_1162;method_23218()Z
      named normalize Lnet/minecraft/util/math/Vector4f;normalize()Z
    • transform

      public void transform(Matrix4f matrix)
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a(Ld;)V
      intermediary method_22674 Lnet/minecraft/class_1162;method_22674(Lnet/minecraft/class_1159;)V
      named transform Lnet/minecraft/util/math/Vector4f;transform(Lnet/minecraft/util/math/Matrix4f;)V
    • rotate

      public void rotate(Quaternion rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a(Lg;)V
      intermediary method_23852 Lnet/minecraft/class_1162;method_23852(Lnet/minecraft/class_1158;)V
      named rotate Lnet/minecraft/util/math/Vector4f;rotate(Lnet/minecraft/util/math/Quaternion;)V
    • normalizeProjectiveCoordinates

      public void normalizeProjectiveCoordinates()
      Mappings:
      Namespace Name Mixin selector
      official f Ll;f()V
      intermediary method_23219 Lnet/minecraft/class_1162;method_23219()V
      named normalizeProjectiveCoordinates Lnet/minecraft/util/math/Vector4f;normalizeProjectiveCoordinates()V
    • lerp

      public void lerp(Vector4f to, float delta)
      Mappings:
      Namespace Name Mixin selector
      official a Ll;a(Ll;F)V
      intermediary method_35928 Lnet/minecraft/class_1162;method_35928(Lnet/minecraft/class_1162;F)V
      named lerp Lnet/minecraft/util/math/Vector4f;lerp(Lnet/minecraft/util/math/Vector4f;F)V
    • toString

      public String toString()
      Overrides:
      toString in class Object