Class RenderSystem

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

public class RenderSystem extends Object
  • Field Details

    • LOGGER

      static final org.slf4j.Logger LOGGER
    • recordingQueue

      private static final ConcurrentLinkedQueue<RenderCall> recordingQueue
    • RENDER_THREAD_TESSELATOR

      private static final Tesselator RENDER_THREAD_TESSELATOR
    • MINIMUM_ATLAS_TEXTURE_SIZE

      private static final int MINIMUM_ATLAS_TEXTURE_SIZE
      See Also:
    • isReplayingQueue

      private static boolean isReplayingQueue
    • gameThread

      @Nullable private static Thread gameThread
    • renderThread

      @Nullable private static Thread renderThread
    • MAX_SUPPORTED_TEXTURE_SIZE

      private static int MAX_SUPPORTED_TEXTURE_SIZE
    • isInInit

      private static boolean isInInit
    • lastDrawTime

      private static double lastDrawTime
    • sharedSequential

      private static final RenderSystem.AutoStorageIndexBuffer sharedSequential
    • sharedSequentialQuad

      private static final RenderSystem.AutoStorageIndexBuffer sharedSequentialQuad
    • sharedSequentialLines

      private static final RenderSystem.AutoStorageIndexBuffer sharedSequentialLines
    • inverseViewRotationMatrix

      private static Matrix3f inverseViewRotationMatrix
    • projectionMatrix

      private static Matrix4f projectionMatrix
    • savedProjectionMatrix

      private static Matrix4f savedProjectionMatrix
    • modelViewStack

      private static PoseStack modelViewStack
    • modelViewMatrix

      private static Matrix4f modelViewMatrix
    • textureMatrix

      private static Matrix4f textureMatrix
    • shaderTextures

      private static final int[] shaderTextures
    • shaderColor

      private static final float[] shaderColor
    • shaderFogStart

      private static float shaderFogStart
    • shaderFogEnd

      private static float shaderFogEnd
    • shaderFogColor

      private static final float[] shaderFogColor
    • shaderFogShape

      private static FogShape shaderFogShape
    • shaderLightDirections

      private static final Vector3f[] shaderLightDirections
    • shaderGameTime

      private static float shaderGameTime
    • shaderLineWidth

      private static float shaderLineWidth
    • apiDescription

      private static String apiDescription
    • shader

      @Nullable private static ShaderInstance shader
  • Constructor Details

    • RenderSystem

      public RenderSystem()
  • Method Details

    • initRenderThread

      public static void initRenderThread()
    • isOnRenderThread

      public static boolean isOnRenderThread()
    • isOnRenderThreadOrInit

      public static boolean isOnRenderThreadOrInit()
    • initGameThread

      public static void initGameThread(boolean p_69578_)
    • isOnGameThread

      public static boolean isOnGameThread()
    • assertInInitPhase

      public static void assertInInitPhase()
    • assertOnGameThreadOrInit

      public static void assertOnGameThreadOrInit()
    • assertOnRenderThreadOrInit

      public static void assertOnRenderThreadOrInit()
    • assertOnRenderThread

      public static void assertOnRenderThread()
    • assertOnGameThread

      public static void assertOnGameThread()
    • constructThreadException

      private static IllegalStateException constructThreadException()
    • isInInitPhase

      public static boolean isInInitPhase()
    • recordRenderCall

      public static void recordRenderCall(RenderCall p_69880_)
    • flipFrame

      public static void flipFrame(long p_69496_)
    • replayQueue

      public static void replayQueue()
    • limitDisplayFPS

      public static void limitDisplayFPS(int p_69831_)
    • disableDepthTest

      public static void disableDepthTest()
    • enableDepthTest

      public static void enableDepthTest()
    • enableScissor

      public static void enableScissor(int p_69489_, int p_69490_, int p_69491_, int p_69492_)
    • disableScissor

      public static void disableScissor()
    • depthFunc

      public static void depthFunc(int p_69457_)
    • depthMask

      public static void depthMask(boolean p_69459_)
    • enableBlend

      public static void enableBlend()
    • disableBlend

      public static void disableBlend()
    • blendFunc

      public static void blendFunc(GlStateManager.SourceFactor p_69409_, GlStateManager.DestFactor p_69410_)
    • blendFunc

      public static void blendFunc(int p_69406_, int p_69407_)
    • blendFuncSeparate

      public static void blendFuncSeparate(GlStateManager.SourceFactor p_69417_, GlStateManager.DestFactor p_69418_, GlStateManager.SourceFactor p_69419_, GlStateManager.DestFactor p_69420_)
    • blendFuncSeparate

      public static void blendFuncSeparate(int p_69412_, int p_69413_, int p_69414_, int p_69415_)
    • blendEquation

      public static void blendEquation(int p_69404_)
    • enableCull

      public static void enableCull()
    • disableCull

      public static void disableCull()
    • polygonMode

      public static void polygonMode(int p_69861_, int p_69862_)
    • enablePolygonOffset

      public static void enablePolygonOffset()
    • disablePolygonOffset

      public static void disablePolygonOffset()
    • polygonOffset

      public static void polygonOffset(float p_69864_, float p_69865_)
    • enableColorLogicOp

      public static void enableColorLogicOp()
    • disableColorLogicOp

      public static void disableColorLogicOp()
    • logicOp

      public static void logicOp(GlStateManager.LogicOp p_69836_)
    • activeTexture

      public static void activeTexture(int p_69389_)
    • enableTexture

      public static void enableTexture()
    • disableTexture

      public static void disableTexture()
    • texParameter

      public static void texParameter(int p_69938_, int p_69939_, int p_69940_)
    • deleteTexture

      public static void deleteTexture(int p_69455_)
    • bindTextureForSetup

      public static void bindTextureForSetup(int p_157185_)
    • bindTexture

      public static void bindTexture(int p_69397_)
    • viewport

      public static void viewport(int p_69950_, int p_69951_, int p_69952_, int p_69953_)
    • colorMask

      public static void colorMask(boolean p_69445_, boolean p_69446_, boolean p_69447_, boolean p_69448_)
    • stencilFunc

      public static void stencilFunc(int p_69926_, int p_69927_, int p_69928_)
    • stencilMask

      public static void stencilMask(int p_69930_)
    • stencilOp

      public static void stencilOp(int p_69932_, int p_69933_, int p_69934_)
    • clearDepth

      public static void clearDepth(double p_69431_)
    • clearColor

      public static void clearColor(float p_69425_, float p_69426_, float p_69427_, float p_69428_)
    • clearStencil

      public static void clearStencil(int p_69433_)
    • clear

      public static void clear(int p_69422_, boolean p_69423_)
    • setShaderFogStart

      public static void setShaderFogStart(float p_157446_)
    • _setShaderFogStart

      private static void _setShaderFogStart(float p_157172_)
    • getShaderFogStart

      public static float getShaderFogStart()
    • setShaderFogEnd

      public static void setShaderFogEnd(float p_157444_)
    • _setShaderFogEnd

      private static void _setShaderFogEnd(float p_157170_)
    • getShaderFogEnd

      public static float getShaderFogEnd()
    • setShaderFogColor

      public static void setShaderFogColor(float p_157439_, float p_157440_, float p_157441_, float p_157442_)
    • setShaderFogColor

      public static void setShaderFogColor(float p_157435_, float p_157436_, float p_157437_)
    • _setShaderFogColor

      private static void _setShaderFogColor(float p_157165_, float p_157166_, float p_157167_, float p_157168_)
    • getShaderFogColor

      public static float[] getShaderFogColor()
    • setShaderFogShape

      public static void setShaderFogShape(FogShape p_202161_)
    • _setShaderFogShape

      private static void _setShaderFogShape(FogShape p_202040_)
    • getShaderFogShape

      public static FogShape getShaderFogShape()
    • setShaderLights

      public static void setShaderLights(Vector3f p_157451_, Vector3f p_157452_)
    • _setShaderLights

      public static void _setShaderLights(Vector3f p_157174_, Vector3f p_157175_)
    • setupShaderLights

      public static void setupShaderLights(ShaderInstance p_157462_)
    • setShaderColor

      public static void setShaderColor(float p_157430_, float p_157431_, float p_157432_, float p_157433_)
    • _setShaderColor

      private static void _setShaderColor(float p_157160_, float p_157161_, float p_157162_, float p_157163_)
    • getShaderColor

      public static float[] getShaderColor()
    • drawElements

      public static void drawElements(int p_157187_, int p_157188_, int p_157189_)
    • lineWidth

      public static void lineWidth(float p_69833_)
    • getShaderLineWidth

      public static float getShaderLineWidth()
    • pixelStore

      public static void pixelStore(int p_69855_, int p_69856_)
    • readPixels

      public static void readPixels(int p_69872_, int p_69873_, int p_69874_, int p_69875_, int p_69876_, int p_69877_, ByteBuffer p_69878_)
    • getString

      public static void getString(int p_69520_, Consumer<String> p_69521_)
    • getBackendDescription

      public static String getBackendDescription()
    • getApiDescription

      public static String getApiDescription()
    • initBackendSystem

      public static TimeSource.NanoTimeSource initBackendSystem()
    • initRenderer

      public static void initRenderer(int p_69581_, boolean p_69582_)
    • setErrorCallback

      public static void setErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI p_69901_)
    • renderCrosshair

      public static void renderCrosshair(int p_69882_)
    • getCapsString

      public static String getCapsString()
    • setupDefaultState

      public static void setupDefaultState(int p_69903_, int p_69904_, int p_69905_, int p_69906_)
    • maxSupportedTextureSize

      public static int maxSupportedTextureSize()
    • glBindBuffer

      public static void glBindBuffer(int p_157209_, IntSupplier p_157210_)
    • glBindVertexArray

      public static void glBindVertexArray(Supplier<Integer> p_157212_)
    • glBufferData

      public static void glBufferData(int p_69526_, ByteBuffer p_69527_, int p_69528_)
    • glDeleteBuffers

      public static void glDeleteBuffers(int p_69530_)
    • glDeleteVertexArrays

      public static void glDeleteVertexArrays(int p_157214_)
    • glUniform1i

      public static void glUniform1i(int p_69544_, int p_69545_)
    • glUniform1

      public static void glUniform1(int p_69541_, IntBuffer p_69542_)
    • glUniform2

      public static void glUniform2(int p_69550_, IntBuffer p_69551_)
    • glUniform3

      public static void glUniform3(int p_69556_, IntBuffer p_69557_)
    • glUniform4

      public static void glUniform4(int p_69562_, IntBuffer p_69563_)
    • glUniform1

      public static void glUniform1(int p_69538_, FloatBuffer p_69539_)
    • glUniform2

      public static void glUniform2(int p_69547_, FloatBuffer p_69548_)
    • glUniform3

      public static void glUniform3(int p_69553_, FloatBuffer p_69554_)
    • glUniform4

      public static void glUniform4(int p_69559_, FloatBuffer p_69560_)
    • glUniformMatrix2

      public static void glUniformMatrix2(int p_69565_, boolean p_69566_, FloatBuffer p_69567_)
    • glUniformMatrix3

      public static void glUniformMatrix3(int p_69569_, boolean p_69570_, FloatBuffer p_69571_)
    • glUniformMatrix4

      public static void glUniformMatrix4(int p_69573_, boolean p_69574_, FloatBuffer p_69575_)
    • setupOverlayColor

      public static void setupOverlayColor(IntSupplier p_69921_, int p_69922_)
    • teardownOverlayColor

      public static void teardownOverlayColor()
    • setupLevelDiffuseLighting

      public static void setupLevelDiffuseLighting(Vector3f p_69915_, Vector3f p_69916_, Matrix4f p_69917_)
    • setupGuiFlatDiffuseLighting

      public static void setupGuiFlatDiffuseLighting(Vector3f p_69912_, Vector3f p_69913_)
    • setupGui3DDiffuseLighting

      public static void setupGui3DDiffuseLighting(Vector3f p_69909_, Vector3f p_69910_)
    • beginInitialization

      public static void beginInitialization()
    • finishInitialization

      public static void finishInitialization()
    • glGenBuffers

      public static void glGenBuffers(Consumer<Integer> p_69532_)
    • glGenVertexArrays

      public static void glGenVertexArrays(Consumer<Integer> p_157216_)
    • renderThreadTesselator

      public static Tesselator renderThreadTesselator()
    • defaultBlendFunc

      public static void defaultBlendFunc()
    • runAsFancy

      @Deprecated public static void runAsFancy(Runnable p_69891_)
      Deprecated.
    • setShader

      public static void setShader(Supplier<ShaderInstance> p_157428_)
    • getShader

      @Nullable public static ShaderInstance getShader()
    • getTextureId

      public static int getTextureId(int p_157206_)
    • setShaderTexture

      public static void setShaderTexture(int p_157457_, ResourceLocation p_157458_)
    • _setShaderTexture

      public static void _setShaderTexture(int p_157180_, ResourceLocation p_157181_)
    • setShaderTexture

      public static void setShaderTexture(int p_157454_, int p_157455_)
    • _setShaderTexture

      public static void _setShaderTexture(int p_157177_, int p_157178_)
    • getShaderTexture

      public static int getShaderTexture(int p_157204_)
    • setProjectionMatrix

      public static void setProjectionMatrix(Matrix4f p_157426_)
    • setInverseViewRotationMatrix

      public static void setInverseViewRotationMatrix(Matrix3f p_200919_)
    • setTextureMatrix

      public static void setTextureMatrix(Matrix4f p_157460_)
    • resetTextureMatrix

      public static void resetTextureMatrix()
    • applyModelViewMatrix

      public static void applyModelViewMatrix()
    • backupProjectionMatrix

      public static void backupProjectionMatrix()
    • _backupProjectionMatrix

      private static void _backupProjectionMatrix()
    • restoreProjectionMatrix

      public static void restoreProjectionMatrix()
    • _restoreProjectionMatrix

      private static void _restoreProjectionMatrix()
    • getProjectionMatrix

      public static Matrix4f getProjectionMatrix()
    • getInverseViewRotationMatrix

      public static Matrix3f getInverseViewRotationMatrix()
    • getModelViewMatrix

      public static Matrix4f getModelViewMatrix()
    • getModelViewStack

      public static PoseStack getModelViewStack()
    • getTextureMatrix

      public static Matrix4f getTextureMatrix()
    • getSequentialBuffer

      public static RenderSystem.AutoStorageIndexBuffer getSequentialBuffer(VertexFormat.Mode p_221942_)
    • setShaderGameTime

      public static void setShaderGameTime(long p_157448_, float p_157449_)
    • getShaderGameTime

      public static float getShaderGameTime()