Skip to content

API Reference

This section provides comprehensive API documentation for Minecraft 26.1’s rendering system, covering all major components and their usage.

Complete reference for the Blaze3D graphics abstraction layer:

  • Core classes and interfaces
  • Device management
  • Resource creation and cleanup
  • Thread safety patterns

Detailed documentation of render type configurations:

  • Built-in render types
  • Custom render type creation
  • Shader pipeline configuration
  • Blend modes and transparency

Comprehensive shader development reference:

  • GLSL version specifications
  • Built-in uniforms and attributes
  • Texture sampler configurations
  • Performance guidelines

Main Minecraft client rendering APIs:

  • LevelRenderer integration
  • Entity rendering system
  • Block entity rendering
  • GUI and overlay rendering
// Example: Basic rendering setup
RenderSystem.assertOnRenderThread();
RenderSystem.setShaderTexture(0, texture);
RenderSystem.setShaderColor(1.0f, 1.0f, 1.0f, 1.0f);
// Render geometry
VertexConsumer consumer = bufferSource.getBuffer(renderType);
// ... vertex submission
// Example: Creating custom render type
RenderType customType = RenderType.builder()
.setTransparencyState(TransparencyState.TRANSLUCENT)
.setTextureState(new TextureState(textureLocation, false, false))
.setCullState(CullState.NO_CULL)
.setShaderState(RENDERTYPE_ENTITY_TRANSLUCENT_SHADER)
.build("custom_type");
// Example: Custom shader setup
ShaderInstance shader = new ShaderInstance(resourceProvider, "custom_shader", format);
shader.safeGetUniform("uniformName").set(value);
RenderSystem.setShader(() -> shader);

This documentation covers Minecraft 26.1 specifically. Key changes from previous versions:

  • Enhanced Blaze3D integration with improved abstractions
  • Thread safety enforcement for all rendering operations
  • Improved shader pipeline with better debugging support
  • Performance optimizations throughout the rendering system

This reference documentation is based on the actual decompiled Minecraft 26.1 source code. All code examples are verified against the official implementation.

For questions or contributions, see the project repository.