Class Matrix4f

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

public final class Matrix4f
extends Object
Mappings:
Namespace Name
official b
intermediary net/minecraft/class_1159
named net/minecraft/util/math/Matrix4f
  • Field Details

    • a00

      protected float a00
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a:F
      intermediary field_21652 Lnet/minecraft/class_1159;field_21652:F
      named a00 Lnet/minecraft/util/math/Matrix4f;a00:F
    • a01

      protected float a01
      Mappings:
      Namespace Name Mixin selector
      official b Lb;b:F
      intermediary field_21653 Lnet/minecraft/class_1159;field_21653:F
      named a01 Lnet/minecraft/util/math/Matrix4f;a01:F
    • a02

      protected float a02
      Mappings:
      Namespace Name Mixin selector
      official c Lb;c:F
      intermediary field_21654 Lnet/minecraft/class_1159;field_21654:F
      named a02 Lnet/minecraft/util/math/Matrix4f;a02:F
    • a03

      protected float a03
      Mappings:
      Namespace Name Mixin selector
      official d Lb;d:F
      intermediary field_21655 Lnet/minecraft/class_1159;field_21655:F
      named a03 Lnet/minecraft/util/math/Matrix4f;a03:F
    • a10

      protected float a10
      Mappings:
      Namespace Name Mixin selector
      official e Lb;e:F
      intermediary field_21656 Lnet/minecraft/class_1159;field_21656:F
      named a10 Lnet/minecraft/util/math/Matrix4f;a10:F
    • a11

      protected float a11
      Mappings:
      Namespace Name Mixin selector
      official f Lb;f:F
      intermediary field_21657 Lnet/minecraft/class_1159;field_21657:F
      named a11 Lnet/minecraft/util/math/Matrix4f;a11:F
    • a12

      protected float a12
      Mappings:
      Namespace Name Mixin selector
      official g Lb;g:F
      intermediary field_21658 Lnet/minecraft/class_1159;field_21658:F
      named a12 Lnet/minecraft/util/math/Matrix4f;a12:F
    • a13

      protected float a13
      Mappings:
      Namespace Name Mixin selector
      official h Lb;h:F
      intermediary field_21659 Lnet/minecraft/class_1159;field_21659:F
      named a13 Lnet/minecraft/util/math/Matrix4f;a13:F
    • a20

      protected float a20
      Mappings:
      Namespace Name Mixin selector
      official i Lb;i:F
      intermediary field_21660 Lnet/minecraft/class_1159;field_21660:F
      named a20 Lnet/minecraft/util/math/Matrix4f;a20:F
    • a21

      protected float a21
      Mappings:
      Namespace Name Mixin selector
      official j Lb;j:F
      intermediary field_21661 Lnet/minecraft/class_1159;field_21661:F
      named a21 Lnet/minecraft/util/math/Matrix4f;a21:F
    • a22

      protected float a22
      Mappings:
      Namespace Name Mixin selector
      official k Lb;k:F
      intermediary field_21662 Lnet/minecraft/class_1159;field_21662:F
      named a22 Lnet/minecraft/util/math/Matrix4f;a22:F
    • a23

      protected float a23
      Mappings:
      Namespace Name Mixin selector
      official l Lb;l:F
      intermediary field_21663 Lnet/minecraft/class_1159;field_21663:F
      named a23 Lnet/minecraft/util/math/Matrix4f;a23:F
    • a30

      protected float a30
      Mappings:
      Namespace Name Mixin selector
      official m Lb;m:F
      intermediary field_21664 Lnet/minecraft/class_1159;field_21664:F
      named a30 Lnet/minecraft/util/math/Matrix4f;a30:F
    • a31

      protected float a31
      Mappings:
      Namespace Name Mixin selector
      official n Lb;n:F
      intermediary field_21665 Lnet/minecraft/class_1159;field_21665:F
      named a31 Lnet/minecraft/util/math/Matrix4f;a31:F
    • a32

      protected float a32
      Mappings:
      Namespace Name Mixin selector
      official o Lb;o:F
      intermediary field_21666 Lnet/minecraft/class_1159;field_21666:F
      named a32 Lnet/minecraft/util/math/Matrix4f;a32:F
    • a33

      protected float a33
      Mappings:
      Namespace Name Mixin selector
      official p Lb;p:F
      intermediary field_21667 Lnet/minecraft/class_1159;field_21667:F
      named a33 Lnet/minecraft/util/math/Matrix4f;a33:F
  • Constructor Details

    • Matrix4f

      public Matrix4f()
    • Matrix4f

      public Matrix4f​(Matrix4f source)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lb;<init>(Lb;)V
      intermediary <init> Lnet/minecraft/class_1159;<init>(Lnet/minecraft/class_1159;)V
      named <init> Lnet/minecraft/util/math/Matrix4f;<init>(Lnet/minecraft/util/math/Matrix4f;)V
    • Matrix4f

      public Matrix4f​(Quaternion quaternion)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lb;<init>(Ld;)V
      intermediary <init> Lnet/minecraft/class_1159;<init>(Lnet/minecraft/class_1158;)V
      named <init> Lnet/minecraft/util/math/Matrix4f;<init>(Lnet/minecraft/util/math/Quaternion;)V
  • Method Details

    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
      Mappings:
      Namespace Name Mixin selector
      official hashCode Lb;hashCode()I
      intermediary hashCode Lnet/minecraft/class_1159;hashCode()I
      named hashCode Lnet/minecraft/util/math/Matrix4f;hashCode()I
    • pack

      @Environment(CLIENT) private static int pack​(int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a(II)I
      intermediary method_24020 Lnet/minecraft/class_1159;method_24020(II)I
      named pack Lnet/minecraft/util/math/Matrix4f;pack(II)I
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Mappings:
      Namespace Name Mixin selector
      official toString Lb;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_1159;toString()Ljava/lang/String;
      named toString Lnet/minecraft/util/math/Matrix4f;toString()Ljava/lang/String;
    • writeToBuffer

      @Environment(CLIENT) public void writeToBuffer​(FloatBuffer buffer)
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a(Ljava/nio/FloatBuffer;)V
      intermediary method_4932 Lnet/minecraft/class_1159;method_4932(Ljava/nio/FloatBuffer;)V
      named writeToBuffer Lnet/minecraft/util/math/Matrix4f;writeToBuffer(Ljava/nio/FloatBuffer;)V
    • loadIdentity

      @Environment(CLIENT) public void loadIdentity()
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a()V
      intermediary method_22668 Lnet/minecraft/class_1159;method_22668()V
      named loadIdentity Lnet/minecraft/util/math/Matrix4f;loadIdentity()V
    • determinantAndAdjugate

      @Environment(CLIENT) public float determinantAndAdjugate()
      Mappings:
      Namespace Name Mixin selector
      official b Lb;b()F
      intermediary method_22868 Lnet/minecraft/class_1159;method_22868()F
      named determinantAndAdjugate Lnet/minecraft/util/math/Matrix4f;determinantAndAdjugate()F
    • transpose

      @Environment(CLIENT) public void transpose()
      Mappings:
      Namespace Name Mixin selector
      official e Lb;e()V
      intermediary method_22871 Lnet/minecraft/class_1159;method_22871()V
      named transpose Lnet/minecraft/util/math/Matrix4f;transpose()V
    • invert

      @Environment(CLIENT) public boolean invert()
      Mappings:
      Namespace Name Mixin selector
      official c Lb;c()Z
      intermediary method_22870 Lnet/minecraft/class_1159;method_22870()Z
      named invert Lnet/minecraft/util/math/Matrix4f;invert()Z
    • multiply

      @Environment(CLIENT) public void multiply​(Matrix4f matrix)
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a(Lb;)V
      intermediary method_22672 Lnet/minecraft/class_1159;method_22672(Lnet/minecraft/class_1159;)V
      named multiply Lnet/minecraft/util/math/Matrix4f;multiply(Lnet/minecraft/util/math/Matrix4f;)V
    • multiply

      @Environment(CLIENT) public void multiply​(Quaternion quaternion)
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a(Ld;)V
      intermediary method_22670 Lnet/minecraft/class_1159;method_22670(Lnet/minecraft/class_1158;)V
      named multiply Lnet/minecraft/util/math/Matrix4f;multiply(Lnet/minecraft/util/math/Quaternion;)V
    • multiply

      @Environment(CLIENT) public void multiply​(float scalar)
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a(F)V
      intermediary method_22866 Lnet/minecraft/class_1159;method_22866(F)V
      named multiply Lnet/minecraft/util/math/Matrix4f;multiply(F)V
    • viewboxMatrix

      @Environment(CLIENT) public static Matrix4f viewboxMatrix​(double fov, float aspectRatio, float cameraDepth, float viewDistance)
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a(DFFF)Lb;
      intermediary method_4929 Lnet/minecraft/class_1159;method_4929(DFFF)Lnet/minecraft/class_1159;
      named viewboxMatrix Lnet/minecraft/util/math/Matrix4f;viewboxMatrix(DFFF)Lnet/minecraft/util/math/Matrix4f;
    • projectionMatrix

      @Environment(CLIENT) public static Matrix4f projectionMatrix​(float width, float height, float nearPlane, float farPlane)
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a(FFFF)Lb;
      intermediary method_4933 Lnet/minecraft/class_1159;method_4933(FFFF)Lnet/minecraft/class_1159;
      named projectionMatrix Lnet/minecraft/util/math/Matrix4f;projectionMatrix(FFFF)Lnet/minecraft/util/math/Matrix4f;
    • addToLastColumn

      @Environment(CLIENT) public void addToLastColumn​(Vec3f vector)
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a(Lg;)V
      intermediary method_22671 Lnet/minecraft/class_1159;method_22671(Lnet/minecraft/class_1160;)V
      named addToLastColumn Lnet/minecraft/util/math/Matrix4f;addToLastColumn(Lnet/minecraft/util/math/Vec3f;)V
    • copy

      @Environment(CLIENT) public Matrix4f copy()
      Mappings:
      Namespace Name Mixin selector
      official d Lb;d()Lb;
      intermediary method_22673 Lnet/minecraft/class_1159;method_22673()Lnet/minecraft/class_1159;
      named copy Lnet/minecraft/util/math/Matrix4f;copy()Lnet/minecraft/util/math/Matrix4f;
    • multiplyByTranslation

      @Environment(CLIENT) public void multiplyByTranslation​(float x, float y, float z)
      Multiplies the matrix by the translation matrix consisting of x, y and z.

      multiplyByTranslation(x, y, z) is equivalent to multiply(Matrix4f.translate(x, y, z)).

      Mappings:
      Namespace Name Mixin selector
      official c Lb;c(FFF)V
      intermediary method_31544 Lnet/minecraft/class_1159;method_31544(FFF)V
      named multiplyByTranslation Lnet/minecraft/util/math/Matrix4f;multiplyByTranslation(FFF)V
    • scale

      @Environment(CLIENT) public static Matrix4f scale​(float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official a Lb;a(FFF)Lb;
      intermediary method_24019 Lnet/minecraft/class_1159;method_24019(FFF)Lnet/minecraft/class_1159;
      named scale Lnet/minecraft/util/math/Matrix4f;scale(FFF)Lnet/minecraft/util/math/Matrix4f;
    • translate

      @Environment(CLIENT) public static Matrix4f translate​(float x, float y, float z)
      Mappings:
      Namespace Name Mixin selector
      official b Lb;b(FFF)Lb;
      intermediary method_24021 Lnet/minecraft/class_1159;method_24021(FFF)Lnet/minecraft/class_1159;
      named translate Lnet/minecraft/util/math/Matrix4f;translate(FFF)Lnet/minecraft/util/math/Matrix4f;