Package com.mojang.blaze3d.systems
Class RenderSystem
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem
- Mappings:
Namespace Name named com/mojang/blaze3d/systems/RenderSystemintermediary com/mojang/blaze3d/systems/RenderSystemofficial com/mojang/blaze3d/systems/RenderSystem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn index buffer that holds a pre-made indices for a specific shape.(package private) static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate static double(package private) static final Loggerstatic final intprivate static final Vector3fprivate static final Matrix4fStackprivate static final ArrayListDeque<RenderSystem.Task> private static final AtomicLongprivate static final AtomicBooleanprivate static Matrix4fprivate static ProjectionTypeprivate static Matrix4fprivate static ProjectionTypestatic final ScissorStateprivate static final float[]private static Fogprivate static floatprivate static floatprivate static final Vector3f[]private static floatprivate static final GpuTexture[]private static final RenderSystem.ShapeIndexBufferprivate static final RenderSystem.ShapeIndexBufferprivate static final RenderSystem.ShapeIndexBufferstatic final intprivate static Matrix4f -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprivate static IllegalStateExceptionstatic voidstatic voidenableScissor(int x, int y, int width, int height) static voidstatic voidflipFrame(long window, @Nullable TracyFrameCapturer capturer) static Stringstatic Stringstatic GpuDevicestatic Vector3fstatic Matrix4fstatic Matrix4fStackstatic Matrix4fstatic ProjectionTypestatic GpuBuffergetSequentialBuffer(VertexFormat.DrawMode drawMode) static float[]static Fogstatic floatstatic floatstatic Vector3f[]static floatstatic @Nullable GpuTexturegetShaderTexture(int index) static Matrix4fstatic TimeSupplier.Nanosecondsstatic voidinitRenderer(long windowHandle, int debugVerbosity, boolean sync, BiFunction<Identifier, ShaderType, String> shaderSourceGetter, boolean renderDebugLabels) static voidstatic booleanstatic booleanstatic voidlimitDisplayFPS(int fps) static voidlineWidth(float width) private static voidstatic voidqueueFencedTask(Runnable task) static voidstatic voidstatic voidstatic voidsetErrorCallback(GLFWErrorCallbackI callback) static voidsetModelOffset(float offsetX, float offsetY, float offsetZ) static voidsetProjectionMatrix(Matrix4f projectionMatrix, ProjectionType projectionType) static voidsetShaderColor(float red, float green, float blue, float alpha) static voidsetShaderFog(Fog shaderFog) static voidsetShaderGameTime(long time, float tickProgress) static voidsetShaderGlintAlpha(double shaderGlintAlpha) static voidsetShaderGlintAlpha(float shaderGlintAlpha) static voidsetShaderLights(Vector3f vector3f, Vector3f vector3f2) static voidsetShaderTexture(int index, @Nullable GpuTexture texture) static voidsetTextureMatrix(Matrix4f textureMatrix) static voidstatic voidsetupGui3DDiffuseLighting(Vector3f vector3f, Vector3f vector3f2) static voidsetupGuiFlatDiffuseLighting(Vector3f vector3f, Vector3f vector3f2) static voidsetupLevelDiffuseLighting(Vector3f vector3f, Vector3f vector3f2) static voidsetupOverlayColor(@Nullable GpuTexture texture) static void
-
Field Details
-
SCISSOR_STATE
-
LOGGER
-
MINIMUM_ATLAS_TEXTURE_SIZE
public static final int MINIMUM_ATLAS_TEXTURE_SIZE- See Also:
-
renderThread
-
DEVICE
-
lastDrawTime
private static double lastDrawTime -
projectionMatrix
-
savedProjectionMatrix
-
projectionType
-
savedProjectionType
-
modelViewStack
-
textureMatrix
-
TEXTURE_COUNT
public static final int TEXTURE_COUNT- See Also:
-
shaderTextures
-
shaderColor
private static final float[] shaderColor -
shaderGlintAlpha
private static float shaderGlintAlpha -
shaderFog
-
shaderLightDirections
-
shaderGameTime
private static float shaderGameTime -
modelOffset
-
shaderLineWidth
private static float shaderLineWidth -
apiDescription
-
pollEventsWaitStart
-
pollingEvents
-
QUAD_VERTEX_BUFFER
-
PENDING_FENCES
-
-
Constructor Details
-
RenderSystem
public RenderSystem()
-
-
Method Details
-
initRenderThread
public static void initRenderThread() -
isOnRenderThread
public static boolean isOnRenderThread() -
assertOnRenderThread
public static void assertOnRenderThread() -
constructThreadException
-
pollEvents
private static void pollEvents() -
isFrozenAtPollEvents
public static boolean isFrozenAtPollEvents() -
flipFrame
- Mappings:
Namespace Name Mixin selector named flipFrameLcom/mojang/blaze3d/systems/RenderSystem;flipFrame(JLnet/minecraft/client/util/tracy/TracyFrameCapturer;)Vintermediary flipFrameLcom/mojang/blaze3d/systems/RenderSystem;flipFrame(JLnet/minecraft/class_10219;)Vofficial flipFrameLcom/mojang/blaze3d/systems/RenderSystem;flipFrame(JLfii;)V
-
limitDisplayFPS
public static void limitDisplayFPS(int fps) - Mappings:
Namespace Name Mixin selector named limitDisplayFPSLcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)Vintermediary limitDisplayFPSLcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)Vofficial limitDisplayFPSLcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
-
enableScissor
public static void enableScissor(int x, int y, int width, int height) - Mappings:
Namespace Name Mixin selector named enableScissorLcom/mojang/blaze3d/systems/RenderSystem;enableScissor(IIII)Vintermediary enableScissorLcom/mojang/blaze3d/systems/RenderSystem;enableScissor(IIII)Vofficial enableScissorLcom/mojang/blaze3d/systems/RenderSystem;enableScissor(IIII)V
-
disableScissor
public static void disableScissor() -
setShaderFog
- Mappings:
Namespace Name Mixin selector named setShaderFogLcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lnet/minecraft/client/render/Fog;)Vintermediary setShaderFogLcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lnet/minecraft/class_9958;)Vofficial setShaderFogLcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lgrb;)V
-
getShaderFog
-
setShaderGlintAlpha
public static void setShaderGlintAlpha(double shaderGlintAlpha) - Mappings:
Namespace Name Mixin selector named setShaderGlintAlphaLcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(D)Vintermediary setShaderGlintAlphaLcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(D)Vofficial setShaderGlintAlphaLcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(D)V
-
setShaderGlintAlpha
public static void setShaderGlintAlpha(float shaderGlintAlpha) - Mappings:
Namespace Name Mixin selector named setShaderGlintAlphaLcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(F)Vintermediary setShaderGlintAlphaLcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(F)Vofficial setShaderGlintAlphaLcom/mojang/blaze3d/systems/RenderSystem;setShaderGlintAlpha(F)V
-
getShaderGlintAlpha
public static float getShaderGlintAlpha() -
setShaderLights
-
getShaderLights
-
setShaderColor
public static void setShaderColor(float red, float green, float blue, float alpha) - Mappings:
Namespace Name Mixin selector named setShaderColorLcom/mojang/blaze3d/systems/RenderSystem;setShaderColor(FFFF)Vintermediary setShaderColorLcom/mojang/blaze3d/systems/RenderSystem;setShaderColor(FFFF)Vofficial setShaderColorLcom/mojang/blaze3d/systems/RenderSystem;setShaderColor(FFFF)V
-
getShaderColor
public static float[] getShaderColor() -
lineWidth
public static void lineWidth(float width) - Mappings:
Namespace Name Mixin selector named lineWidthLcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)Vintermediary lineWidthLcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)Vofficial lineWidthLcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)V
-
getShaderLineWidth
public static float getShaderLineWidth() -
getBackendDescription
-
getApiDescription
-
initBackendSystem
-
initRenderer
public static void initRenderer(long windowHandle, int debugVerbosity, boolean sync, BiFunction<Identifier, ShaderType, String> shaderSourceGetter, boolean renderDebugLabels) - Mappings:
Namespace Name Mixin selector named initRendererLcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)Vintermediary initRendererLcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)Vofficial initRendererLcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
-
setErrorCallback
- Mappings:
Namespace Name Mixin selector named setErrorCallbackLcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)Vintermediary setErrorCallbackLcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)Vofficial setErrorCallbackLcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
-
setupDefaultState
public static void setupDefaultState() -
setupOverlayColor
- Mappings:
Namespace Name Mixin selector named setupOverlayColorLcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTexture;)Vintermediary setupOverlayColorLcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTexture;)Vofficial setupOverlayColorLcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTexture;)V
-
teardownOverlayColor
public static void teardownOverlayColor() -
setupLevelDiffuseLighting
-
setupGuiFlatDiffuseLighting
-
setupGui3DDiffuseLighting
-
setShaderTexture
- Mappings:
Namespace Name Mixin selector named setShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTexture;)Vintermediary setShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTexture;)Vofficial setShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTexture;)V
-
getShaderTexture
- Mappings:
Namespace Name Mixin selector named getShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTexture;intermediary getShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTexture;official getShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTexture;
-
setProjectionMatrix
- Mappings:
Namespace Name Mixin selector named setProjectionMatrixLcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lorg/joml/Matrix4f;Lcom/mojang/blaze3d/systems/ProjectionType;)Vintermediary setProjectionMatrixLcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lorg/joml/Matrix4f;Lnet/minecraft/class_10366;)Vofficial setProjectionMatrixLcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lorg/joml/Matrix4f;Lfig;)V
-
setTextureMatrix
- Mappings:
Namespace Name Mixin selector named setTextureMatrixLcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)Vintermediary setTextureMatrixLcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)Vofficial setTextureMatrixLcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
-
resetTextureMatrix
public static void resetTextureMatrix() -
backupProjectionMatrix
public static void backupProjectionMatrix() -
restoreProjectionMatrix
public static void restoreProjectionMatrix() -
getProjectionMatrix
-
getModelViewMatrix
-
getModelViewStack
-
getTextureMatrix
-
getSequentialBuffer
- Mappings:
Namespace Name Mixin selector named getSequentialBufferLcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;)Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;intermediary getSequentialBufferLcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;)Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;official getSequentialBufferLcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$b;)Lcom/mojang/blaze3d/systems/RenderSystem$a;
-
setShaderGameTime
public static void setShaderGameTime(long time, float tickProgress) - Mappings:
Namespace Name Mixin selector named setShaderGameTimeLcom/mojang/blaze3d/systems/RenderSystem;setShaderGameTime(JF)Vintermediary setShaderGameTimeLcom/mojang/blaze3d/systems/RenderSystem;setShaderGameTime(JF)Vofficial setShaderGameTimeLcom/mojang/blaze3d/systems/RenderSystem;setShaderGameTime(JF)V
-
getShaderGameTime
public static float getShaderGameTime() -
getProjectionType
-
getQuadVertexBuffer
-
setModelOffset
public static void setModelOffset(float offsetX, float offsetY, float offsetZ) - Mappings:
Namespace Name Mixin selector named setModelOffsetLcom/mojang/blaze3d/systems/RenderSystem;setModelOffset(FFF)Vintermediary setModelOffsetLcom/mojang/blaze3d/systems/RenderSystem;setModelOffset(FFF)Vofficial setModelOffsetLcom/mojang/blaze3d/systems/RenderSystem;setModelOffset(FFF)V
-
resetModelOffset
public static void resetModelOffset() -
getModelOffset
-
queueFencedTask
- Mappings:
Namespace Name Mixin selector named queueFencedTaskLcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)Vintermediary queueFencedTaskLcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)Vofficial queueFencedTaskLcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
-
executePendingTasks
public static void executePendingTasks() -
getDevice
-
tryGetDevice
-