Class Vec3f

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

public final class Vec3f extends Object
A mutable vector composed of 3 floats.
Mappings:
Namespace Name
official k
intermediary net/minecraft/class_1160
named net/minecraft/util/math/Vec3f
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Vec3f> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a:Lcom/mojang/serialization/Codec;
      intermediary field_28477 Lnet/minecraft/class_1160;field_28477:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/util/math/Vec3f;CODEC:Lcom/mojang/serialization/Codec;
    • NEGATIVE_X

      public static Vec3f NEGATIVE_X
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b:Lk;
      intermediary field_20702 Lnet/minecraft/class_1160;field_20702:Lnet/minecraft/class_1160;
      named NEGATIVE_X Lnet/minecraft/util/math/Vec3f;NEGATIVE_X:Lnet/minecraft/util/math/Vec3f;
    • POSITIVE_X

      public static Vec3f POSITIVE_X
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c:Lk;
      intermediary field_20703 Lnet/minecraft/class_1160;field_20703:Lnet/minecraft/class_1160;
      named POSITIVE_X Lnet/minecraft/util/math/Vec3f;POSITIVE_X:Lnet/minecraft/util/math/Vec3f;
    • NEGATIVE_Y

      public static Vec3f NEGATIVE_Y
      Mappings:
      Namespace Name Mixin selector
      official d Lk;d:Lk;
      intermediary field_20704 Lnet/minecraft/class_1160;field_20704:Lnet/minecraft/class_1160;
      named NEGATIVE_Y Lnet/minecraft/util/math/Vec3f;NEGATIVE_Y:Lnet/minecraft/util/math/Vec3f;
    • POSITIVE_Y

      public static Vec3f POSITIVE_Y
      Mappings:
      Namespace Name Mixin selector
      official e Lk;e:Lk;
      intermediary field_20705 Lnet/minecraft/class_1160;field_20705:Lnet/minecraft/class_1160;
      named POSITIVE_Y Lnet/minecraft/util/math/Vec3f;POSITIVE_Y:Lnet/minecraft/util/math/Vec3f;
    • NEGATIVE_Z

      public static Vec3f NEGATIVE_Z
      Mappings:
      Namespace Name Mixin selector
      official f Lk;f:Lk;
      intermediary field_20706 Lnet/minecraft/class_1160;field_20706:Lnet/minecraft/class_1160;
      named NEGATIVE_Z Lnet/minecraft/util/math/Vec3f;NEGATIVE_Z:Lnet/minecraft/util/math/Vec3f;
    • POSITIVE_Z

      public static Vec3f POSITIVE_Z
      Mappings:
      Namespace Name Mixin selector
      official g Lk;g:Lk;
      intermediary field_20707 Lnet/minecraft/class_1160;field_20707:Lnet/minecraft/class_1160;
      named POSITIVE_Z Lnet/minecraft/util/math/Vec3f;POSITIVE_Z:Lnet/minecraft/util/math/Vec3f;
    • ZERO

      public static Vec3f ZERO
      Mappings:
      Namespace Name Mixin selector
      official h Lk;h:Lk;
      intermediary field_29501 Lnet/minecraft/class_1160;field_29501:Lnet/minecraft/class_1160;
      named ZERO Lnet/minecraft/util/math/Vec3f;ZERO:Lnet/minecraft/util/math/Vec3f;
    • x

      private float x
      Mappings:
      Namespace Name Mixin selector
      official i Lk;i:F
      intermediary field_21483 Lnet/minecraft/class_1160;field_21483:F
      named x Lnet/minecraft/util/math/Vec3f;x:F
    • y

      private float y
      Mappings:
      Namespace Name Mixin selector
      official j Lk;j:F
      intermediary field_21484 Lnet/minecraft/class_1160;field_21484:F
      named y Lnet/minecraft/util/math/Vec3f;y:F
    • z

      private float z
      Mappings:
      Namespace Name Mixin selector
      official k Lk;k:F
      intermediary field_21485 Lnet/minecraft/class_1160;field_21485:F
      named z Lnet/minecraft/util/math/Vec3f;z:F
  • Constructor Details

    • Vec3f

      public Vec3f()
    • Vec3f

      public Vec3f(float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lk;<init>(FFF)V
      intermediary <init> Lnet/minecraft/class_1160;<init>(FFF)V
      named <init> Lnet/minecraft/util/math/Vec3f;<init>(FFF)V
    • Vec3f

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

      public Vec3f(Vec3d other)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lk;<init>(Ldpo;)V
      intermediary <init> Lnet/minecraft/class_1160;<init>(Lnet/minecraft/class_243;)V
      named <init> Lnet/minecraft/util/math/Vec3f;<init>(Lnet/minecraft/util/math/Vec3d;)V
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lk;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_1160;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/math/Vec3f;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 Lk;a()F
      intermediary method_4943 Lnet/minecraft/class_1160;method_4943()F
      named getX Lnet/minecraft/util/math/Vec3f;getX()F
    • getY

      public float getY()
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b()F
      intermediary method_4945 Lnet/minecraft/class_1160;method_4945()F
      named getY Lnet/minecraft/util/math/Vec3f;getY()F
    • getZ

      public float getZ()
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c()F
      intermediary method_4947 Lnet/minecraft/class_1160;method_4947()F
      named getZ Lnet/minecraft/util/math/Vec3f;getZ()F
    • scale

      public void scale(float scale)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(F)V
      intermediary method_4942 Lnet/minecraft/class_1160;method_4942(F)V
      named scale Lnet/minecraft/util/math/Vec3f;scale(F)V
    • multiplyComponentwise

      public void multiplyComponentwise(float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(FFF)V
      intermediary method_23849 Lnet/minecraft/class_1160;method_23849(FFF)V
      named multiplyComponentwise Lnet/minecraft/util/math/Vec3f;multiplyComponentwise(FFF)V
    • clamp

      public void clamp(Vec3f min, Vec3f max)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lk;Lk;)V
      intermediary method_35921 Lnet/minecraft/class_1160;method_35921(Lnet/minecraft/class_1160;Lnet/minecraft/class_1160;)V
      named clamp Lnet/minecraft/util/math/Vec3f;clamp(Lnet/minecraft/util/math/Vec3f;Lnet/minecraft/util/math/Vec3f;)V
    • clamp

      public void clamp(float min, float max)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(FF)V
      intermediary method_4946 Lnet/minecraft/class_1160;method_4946(FF)V
      named clamp Lnet/minecraft/util/math/Vec3f;clamp(FF)V
    • set

      public void set(float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b(FFF)V
      intermediary method_4949 Lnet/minecraft/class_1160;method_4949(FFF)V
      named set Lnet/minecraft/util/math/Vec3f;set(FFF)V
    • set

      public void set(Vec3f vec)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lk;)V
      intermediary method_35920 Lnet/minecraft/class_1160;method_35920(Lnet/minecraft/class_1160;)V
      named set Lnet/minecraft/util/math/Vec3f;set(Lnet/minecraft/util/math/Vec3f;)V
    • add

      public void add(float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c(FFF)V
      intermediary method_4948 Lnet/minecraft/class_1160;method_4948(FFF)V
      named add Lnet/minecraft/util/math/Vec3f;add(FFF)V
    • add

      public void add(Vec3f vector)
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b(Lk;)V
      intermediary method_23846 Lnet/minecraft/class_1160;method_23846(Lnet/minecraft/class_1160;)V
      named add Lnet/minecraft/util/math/Vec3f;add(Lnet/minecraft/util/math/Vec3f;)V
    • subtract

      public void subtract(Vec3f other)
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c(Lk;)V
      intermediary method_4944 Lnet/minecraft/class_1160;method_4944(Lnet/minecraft/class_1160;)V
      named subtract Lnet/minecraft/util/math/Vec3f;subtract(Lnet/minecraft/util/math/Vec3f;)V
    • dot

      public float dot(Vec3f other)
      Mappings:
      Namespace Name Mixin selector
      official d Lk;d(Lk;)F
      intermediary method_4950 Lnet/minecraft/class_1160;method_4950(Lnet/minecraft/class_1160;)F
      named dot Lnet/minecraft/util/math/Vec3f;dot(Lnet/minecraft/util/math/Vec3f;)F
    • normalize

      public boolean normalize()
      Mappings:
      Namespace Name Mixin selector
      official d Lk;d()Z
      intermediary method_4952 Lnet/minecraft/class_1160;method_4952()Z
      named normalize Lnet/minecraft/util/math/Vec3f;normalize()Z
    • cross

      public void cross(Vec3f vector)
      Mappings:
      Namespace Name Mixin selector
      official e Lk;e(Lk;)V
      intermediary method_4951 Lnet/minecraft/class_1160;method_4951(Lnet/minecraft/class_1160;)V
      named cross Lnet/minecraft/util/math/Vec3f;cross(Lnet/minecraft/util/math/Vec3f;)V
    • transform

      public void transform(Matrix3f matrix)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lc;)V
      intermediary method_23215 Lnet/minecraft/class_1160;method_23215(Lnet/minecraft/class_4581;)V
      named transform Lnet/minecraft/util/math/Vec3f;transform(Lnet/minecraft/util/math/Matrix3f;)V
    • rotate

      public void rotate(Quaternion rotation)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lg;)V
      intermediary method_19262 Lnet/minecraft/class_1160;method_19262(Lnet/minecraft/class_1158;)V
      named rotate Lnet/minecraft/util/math/Vec3f;rotate(Lnet/minecraft/util/math/Quaternion;)V
    • lerp

      public void lerp(Vec3f vector, float delta)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lk;F)V
      intermediary method_23847 Lnet/minecraft/class_1160;method_23847(Lnet/minecraft/class_1160;F)V
      named lerp Lnet/minecraft/util/math/Vec3f;lerp(Lnet/minecraft/util/math/Vec3f;F)V
    • getRadialQuaternion

      public Quaternion getRadialQuaternion(float angle)
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b(F)Lg;
      intermediary method_23626 Lnet/minecraft/class_1160;method_23626(F)Lnet/minecraft/class_1158;
      named getRadialQuaternion Lnet/minecraft/util/math/Vec3f;getRadialQuaternion(F)Lnet/minecraft/util/math/Quaternion;
    • getDegreesQuaternion

      public Quaternion getDegreesQuaternion(float angle)
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c(F)Lg;
      intermediary method_23214 Lnet/minecraft/class_1160;method_23214(F)Lnet/minecraft/class_1158;
      named getDegreesQuaternion Lnet/minecraft/util/math/Vec3f;getDegreesQuaternion(F)Lnet/minecraft/util/math/Quaternion;
    • copy

      public Vec3f copy()
      Mappings:
      Namespace Name Mixin selector
      official e Lk;e()Lk;
      intermediary method_23850 Lnet/minecraft/class_1160;method_23850()Lnet/minecraft/class_1160;
      named copy Lnet/minecraft/util/math/Vec3f;copy()Lnet/minecraft/util/math/Vec3f;
    • modify

      public void modify(Float2FloatFunction function)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)V
      intermediary method_23848 Lnet/minecraft/class_1160;method_23848(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)V
      named modify Lnet/minecraft/util/math/Vec3f;modify(Lit/unimi/dsi/fastutil/floats/Float2FloatFunction;)V
    • toString

      public String toString()
      Overrides:
      toString in class Object