Class RenderSystem

java.lang.Object
com.mojang.blaze3d.systems.RenderSystem

@Environment(CLIENT) public class RenderSystem extends Object
Mappings:
Namespace Name
named com/mojang/blaze3d/systems/RenderSystem
intermediary com/mojang/blaze3d/systems/RenderSystem
official com/mojang/blaze3d/systems/RenderSystem
  • Field Details Link icon

    • SCISSOR_STATE Link icon

      public static final ScissorState SCISSOR_STATE
    • LOGGER Link icon

      static final Logger LOGGER
    • MINIMUM_ATLAS_TEXTURE_SIZE Link icon

      public static final int MINIMUM_ATLAS_TEXTURE_SIZE
      See Also:
    • renderThread Link icon

      @Nullable private static @Nullable Thread renderThread
    • DEVICE Link icon

      @Nullable private static @Nullable GpuDevice DEVICE
    • lastDrawTime Link icon

      private static double lastDrawTime
    • sharedSequential Link icon

      private static final RenderSystem.ShapeIndexBuffer sharedSequential
    • sharedSequentialQuad Link icon

      private static final RenderSystem.ShapeIndexBuffer sharedSequentialQuad
    • sharedSequentialLines Link icon

      private static final RenderSystem.ShapeIndexBuffer sharedSequentialLines
    • projectionMatrix Link icon

      private static Matrix4f projectionMatrix
    • savedProjectionMatrix Link icon

      private static Matrix4f savedProjectionMatrix
    • projectionType Link icon

      private static ProjectionType projectionType
    • savedProjectionType Link icon

      private static ProjectionType savedProjectionType
    • modelViewStack Link icon

      private static final Matrix4fStack modelViewStack
    • textureMatrix Link icon

      private static Matrix4f textureMatrix
    • TEXTURE_COUNT Link icon

      public static final int TEXTURE_COUNT
      See Also:
    • shaderTextures Link icon

      private static final GpuTexture[] shaderTextures
    • shaderColor Link icon

      private static final float[] shaderColor
    • shaderGlintAlpha Link icon

      private static float shaderGlintAlpha
    • shaderFog Link icon

      private static Fog shaderFog
    • shaderLightDirections Link icon

      private static final Vector3f[] shaderLightDirections
    • shaderGameTime Link icon

      private static float shaderGameTime
    • modelOffset Link icon

      private static final Vector3f modelOffset
    • shaderLineWidth Link icon

      private static float shaderLineWidth
    • apiDescription Link icon

      private static String apiDescription
    • pollEventsWaitStart Link icon

      private static final AtomicLong pollEventsWaitStart
    • pollingEvents Link icon

      private static final AtomicBoolean pollingEvents
    • QUAD_VERTEX_BUFFER Link icon

      @Nullable private static @Nullable GpuBuffer QUAD_VERTEX_BUFFER
    • PENDING_FENCES Link icon

      private static final ArrayListDeque<RenderSystem.Task> PENDING_FENCES
  • Constructor Details Link icon

    • RenderSystem Link icon

      public RenderSystem()
  • Method Details Link icon

    • initRenderThread Link icon

      public static void initRenderThread()
    • isOnRenderThread Link icon

      public static boolean isOnRenderThread()
    • assertOnRenderThread Link icon

      public static void assertOnRenderThread()
    • constructThreadException Link icon

      private static IllegalStateException constructThreadException()
    • pollEvents Link icon

      private static void pollEvents()
    • isFrozenAtPollEvents Link icon

      public static boolean isFrozenAtPollEvents()
    • flipFrame Link icon

      public static void flipFrame(long window, @Nullable @Nullable TracyFrameCapturer capturer)
      Mappings:
      Namespace Name Mixin selector
      named flipFrame Lcom/mojang/blaze3d/systems/RenderSystem;flipFrame(JLnet/minecraft/client/util/tracy/TracyFrameCapturer;)V
      intermediary flipFrame Lcom/mojang/blaze3d/systems/RenderSystem;flipFrame(JLnet/minecraft/class_10219;)V
      official flipFrame Lcom/mojang/blaze3d/systems/RenderSystem;flipFrame(JLfii;)V
    • limitDisplayFPS Link icon

      public static void limitDisplayFPS(int fps)
      Mappings:
      Namespace Name Mixin selector
      named limitDisplayFPS Lcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
      intermediary limitDisplayFPS Lcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
      official limitDisplayFPS Lcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
    • enableScissor Link icon

      public static void enableScissor(int x, int y, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      named enableScissor Lcom/mojang/blaze3d/systems/RenderSystem;enableScissor(IIII)V
      intermediary enableScissor Lcom/mojang/blaze3d/systems/RenderSystem;enableScissor(IIII)V
      official enableScissor Lcom/mojang/blaze3d/systems/RenderSystem;enableScissor(IIII)V
    • disableScissor Link icon

      public static void disableScissor()
    • setShaderFog Link icon

      public static void setShaderFog(Fog shaderFog)
      Mappings:
      Namespace Name Mixin selector
      named setShaderFog Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lnet/minecraft/client/render/Fog;)V
      intermediary setShaderFog Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lnet/minecraft/class_9958;)V
      official setShaderFog Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lgrb;)V
    • getShaderFog Link icon

      public static Fog getShaderFog()
    • setShaderGlintAlpha Link icon

      public static void setShaderGlintAlpha(double shaderGlintAlpha)
      Mappings:
      Namespace Name Mixin selector
      named setShaderGlintAlpha Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(D)V
      intermediary setShaderGlintAlpha Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(D)V
      official setShaderGlintAlpha Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(D)V
    • setShaderGlintAlpha Link icon

      public static void setShaderGlintAlpha(float shaderGlintAlpha)
      Mappings:
      Namespace Name Mixin selector
      named setShaderGlintAlpha Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(F)V
      intermediary setShaderGlintAlpha Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(F)V
      official setShaderGlintAlpha Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(F)V
    • getShaderGlintAlpha Link icon

      public static float getShaderGlintAlpha()
    • setShaderLights Link icon

      public static void setShaderLights(Vector3f vector3f, Vector3f vector3f2)
    • getShaderLights Link icon

      public static Vector3f[] getShaderLights()
    • setShaderColor Link icon

      public static void setShaderColor(float red, float green, float blue, float alpha)
      Mappings:
      Namespace Name Mixin selector
      named setShaderColor Lcom/mojang/blaze3d/systems/RenderSystem;setShaderColor(FFFF)V
      intermediary setShaderColor Lcom/mojang/blaze3d/systems/RenderSystem;setShaderColor(FFFF)V
      official setShaderColor Lcom/mojang/blaze3d/systems/RenderSystem;setShaderColor(FFFF)V
    • getShaderColor Link icon

      public static float[] getShaderColor()
    • lineWidth Link icon

      public static void lineWidth(float width)
      Mappings:
      Namespace Name Mixin selector
      named lineWidth Lcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)V
      intermediary lineWidth Lcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)V
      official lineWidth Lcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)V
    • getShaderLineWidth Link icon

      public static float getShaderLineWidth()
    • getBackendDescription Link icon

      public static String getBackendDescription()
    • getApiDescription Link icon

      public static String getApiDescription()
    • initBackendSystem Link icon

      public static TimeSupplier.Nanoseconds initBackendSystem()
    • initRenderer Link icon

      public static void initRenderer(long windowHandle, int debugVerbosity, boolean sync, BiFunction<Identifier,ShaderType,String> shaderSourceGetter, boolean renderDebugLabels)
      Mappings:
      Namespace Name Mixin selector
      named initRenderer Lcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
      intermediary initRenderer Lcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
      official initRenderer Lcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
    • setErrorCallback Link icon

      public static void setErrorCallback(GLFWErrorCallbackI callback)
      Mappings:
      Namespace Name Mixin selector
      named setErrorCallback Lcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
      intermediary setErrorCallback Lcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
      official setErrorCallback Lcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
    • setupDefaultState Link icon

      public static void setupDefaultState()
    • setupOverlayColor Link icon

      public static void setupOverlayColor(@Nullable @Nullable GpuTexture texture)
      Mappings:
      Namespace Name Mixin selector
      named setupOverlayColor Lcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTexture;)V
      intermediary setupOverlayColor Lcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTexture;)V
      official setupOverlayColor Lcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTexture;)V
    • teardownOverlayColor Link icon

      public static void teardownOverlayColor()
    • setupLevelDiffuseLighting Link icon

      public static void setupLevelDiffuseLighting(Vector3f vector3f, Vector3f vector3f2)
    • setupGuiFlatDiffuseLighting Link icon

      public static void setupGuiFlatDiffuseLighting(Vector3f vector3f, Vector3f vector3f2)
    • setupGui3DDiffuseLighting Link icon

      public static void setupGui3DDiffuseLighting(Vector3f vector3f, Vector3f vector3f2)
    • setShaderTexture Link icon

      public static void setShaderTexture(int index, @Nullable @Nullable GpuTexture texture)
      Mappings:
      Namespace Name Mixin selector
      named setShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTexture;)V
      intermediary setShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTexture;)V
      official setShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTexture;)V
    • getShaderTexture Link icon

      @Nullable public static @Nullable GpuTexture getShaderTexture(int index)
      Mappings:
      Namespace Name Mixin selector
      named getShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTexture;
      intermediary getShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTexture;
      official getShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTexture;
    • setProjectionMatrix Link icon

      public static void setProjectionMatrix(Matrix4f projectionMatrix, ProjectionType projectionType)
      Mappings:
      Namespace Name Mixin selector
      named setProjectionMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lorg/joml/Matrix4f;Lcom/mojang/blaze3d/systems/ProjectionType;)V
      intermediary setProjectionMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lorg/joml/Matrix4f;Lnet/minecraft/class_10366;)V
      official setProjectionMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lorg/joml/Matrix4f;Lfig;)V
    • setTextureMatrix Link icon

      public static void setTextureMatrix(Matrix4f textureMatrix)
      Mappings:
      Namespace Name Mixin selector
      named setTextureMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
      intermediary setTextureMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
      official setTextureMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
    • resetTextureMatrix Link icon

      public static void resetTextureMatrix()
    • backupProjectionMatrix Link icon

      public static void backupProjectionMatrix()
    • restoreProjectionMatrix Link icon

      public static void restoreProjectionMatrix()
    • getProjectionMatrix Link icon

      public static Matrix4f getProjectionMatrix()
    • getModelViewMatrix Link icon

      public static Matrix4f getModelViewMatrix()
    • getModelViewStack Link icon

      public static Matrix4fStack getModelViewStack()
    • getTextureMatrix Link icon

      public static Matrix4f getTextureMatrix()
    • getSequentialBuffer Link icon

      public static RenderSystem.ShapeIndexBuffer getSequentialBuffer(VertexFormat.DrawMode drawMode)
      Mappings:
      Namespace Name Mixin selector
      named getSequentialBuffer Lcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;)Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;
      intermediary getSequentialBuffer Lcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;)Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;
      official getSequentialBuffer Lcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$b;)Lcom/mojang/blaze3d/systems/RenderSystem$a;
    • setShaderGameTime Link icon

      public static void setShaderGameTime(long time, float tickProgress)
      Mappings:
      Namespace Name Mixin selector
      named setShaderGameTime Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGameTime(JF)V
      intermediary setShaderGameTime Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGameTime(JF)V
      official setShaderGameTime Lcom/mojang/blaze3d/systems/RenderSystem;setShaderGameTime(JF)V
    • getShaderGameTime Link icon

      public static float getShaderGameTime()
    • getProjectionType Link icon

      public static ProjectionType getProjectionType()
    • getQuadVertexBuffer Link icon

      public static GpuBuffer getQuadVertexBuffer()
    • setModelOffset Link icon

      public static void setModelOffset(float offsetX, float offsetY, float offsetZ)
      Mappings:
      Namespace Name Mixin selector
      named setModelOffset Lcom/mojang/blaze3d/systems/RenderSystem;setModelOffset(FFF)V
      intermediary setModelOffset Lcom/mojang/blaze3d/systems/RenderSystem;setModelOffset(FFF)V
      official setModelOffset Lcom/mojang/blaze3d/systems/RenderSystem;setModelOffset(FFF)V
    • resetModelOffset Link icon

      public static void resetModelOffset()
    • getModelOffset Link icon

      public static Vector3f getModelOffset()
    • queueFencedTask Link icon

      public static void queueFencedTask(Runnable task)
      Mappings:
      Namespace Name Mixin selector
      named queueFencedTask Lcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
      intermediary queueFencedTask Lcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
      official queueFencedTask Lcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
    • executePendingTasks Link icon

      public static void executePendingTasks()
    • getDevice Link icon

      public static GpuDevice getDevice()
    • tryGetDevice Link icon

      @Nullable public static @Nullable GpuDevice tryGetDevice()