Class ProjectionMatrix2

java.lang.Object
net.minecraft.client.render.ProjectionMatrix2
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class ProjectionMatrix2 extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/render/ProjectionMatrix2
intermediary net/minecraft/class_11278
official gws
  • Field Details

    • buffer

      private final GpuBuffer buffer
      Mappings:
      Namespace Name Mixin selector
      named buffer Lnet/minecraft/client/render/ProjectionMatrix2;buffer:Lcom/mojang/blaze3d/buffers/GpuBuffer;
      intermediary field_60059 Lnet/minecraft/class_11278;field_60059:Lcom/mojang/blaze3d/buffers/GpuBuffer;
      official a Lgws;a:Lcom/mojang/blaze3d/buffers/GpuBuffer;
    • slice

      private final GpuBufferSlice slice
      Mappings:
      Namespace Name Mixin selector
      named slice Lnet/minecraft/client/render/ProjectionMatrix2;slice:Lcom/mojang/blaze3d/buffers/GpuBufferSlice;
      intermediary field_60060 Lnet/minecraft/class_11278;field_60060:Lcom/mojang/blaze3d/buffers/GpuBufferSlice;
      official b Lgws;b:Lcom/mojang/blaze3d/buffers/GpuBufferSlice;
    • nearZ

      private final float nearZ
      Mappings:
      Namespace Name Mixin selector
      named nearZ Lnet/minecraft/client/render/ProjectionMatrix2;nearZ:F
      intermediary field_60061 Lnet/minecraft/class_11278;field_60061:F
      official c Lgws;c:F
    • farZ

      private final float farZ
      Mappings:
      Namespace Name Mixin selector
      named farZ Lnet/minecraft/client/render/ProjectionMatrix2;farZ:F
      intermediary field_60062 Lnet/minecraft/class_11278;field_60062:F
      official d Lgws;d:F
    • invertY

      private final boolean invertY
      Mappings:
      Namespace Name Mixin selector
      named invertY Lnet/minecraft/client/render/ProjectionMatrix2;invertY:Z
      intermediary field_60063 Lnet/minecraft/class_11278;field_60063:Z
      official e Lgws;e:Z
    • width

      private float width
      Mappings:
      Namespace Name Mixin selector
      named width Lnet/minecraft/client/render/ProjectionMatrix2;width:F
      intermediary field_60064 Lnet/minecraft/class_11278;field_60064:F
      official f Lgws;f:F
    • height

      private float height
      Mappings:
      Namespace Name Mixin selector
      named height Lnet/minecraft/client/render/ProjectionMatrix2;height:F
      intermediary field_60065 Lnet/minecraft/class_11278;field_60065:F
      official g Lgws;g:F
  • Constructor Details

    • ProjectionMatrix2

      public ProjectionMatrix2(String name, float nearZ, float farZ, boolean invertY)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/ProjectionMatrix2;<init>(Ljava/lang/String;FFZ)V
      intermediary <init> Lnet/minecraft/class_11278;<init>(Ljava/lang/String;FFZ)V
      official <init> Lgws;<init>(Ljava/lang/String;FFZ)V
  • Method Details

    • set

      public GpuBufferSlice set(float width, float height)
      Mappings:
      Namespace Name Mixin selector
      named set Lnet/minecraft/client/render/ProjectionMatrix2;set(FF)Lcom/mojang/blaze3d/buffers/GpuBufferSlice;
      intermediary method_71092 Lnet/minecraft/class_11278;method_71092(FF)Lcom/mojang/blaze3d/buffers/GpuBufferSlice;
      official a Lgws;a(FF)Lcom/mojang/blaze3d/buffers/GpuBufferSlice;
    • getMatrix

      private Matrix4f getMatrix(float width, float height)
      Mappings:
      Namespace Name Mixin selector
      named getMatrix Lnet/minecraft/client/render/ProjectionMatrix2;getMatrix(FF)Lorg/joml/Matrix4f;
      intermediary method_71094 Lnet/minecraft/class_11278;method_71094(FF)Lorg/joml/Matrix4f;
      official b Lgws;b(FF)Lorg/joml/Matrix4f;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable