API Reference
API Reference
Section titled “API Reference”This section provides comprehensive API documentation for Minecraft 26.1’s rendering system, covering all major components and their usage.
Available References
Section titled “Available References”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
Usage Patterns
Section titled “Usage Patterns”Basic Rendering
Section titled “Basic Rendering”// Example: Basic rendering setupRenderSystem.assertOnRenderThread();RenderSystem.setShaderTexture(0, texture);RenderSystem.setShaderColor(1.0f, 1.0f, 1.0f, 1.0f);
// Render geometryVertexConsumer consumer = bufferSource.getBuffer(renderType);// ... vertex submissionCustom Render Types
Section titled “Custom Render Types”// Example: Creating custom render typeRenderType customType = RenderType.builder() .setTransparencyState(TransparencyState.TRANSLUCENT) .setTextureState(new TextureState(textureLocation, false, false)) .setCullState(CullState.NO_CULL) .setShaderState(RENDERTYPE_ENTITY_TRANSLUCENT_SHADER) .build("custom_type");Shader Integration
Section titled “Shader Integration”// Example: Custom shader setupShaderInstance shader = new ShaderInstance(resourceProvider, "custom_shader", format);shader.safeGetUniform("uniformName").set(value);RenderSystem.setShader(() -> shader);Migration Notes
Section titled “Migration Notes”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
Contributing
Section titled “Contributing”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.
Related Sections
Section titled “Related Sections”- Getting Started - Learn basic concepts
- Practical Examples - See complete implementations
- Advanced Topics - Master complex techniques