Interface RenderTypeExtension
- All Known Implementing Classes:
RenderTypeMixin
public interface RenderTypeExtension
Duck interface to make RenderType store a DrawBuffer.
- See Also:
-
RenderType
-
Method Summary
Modifier and TypeMethodDescriptionstatic DrawBuffergetDrawBuffer(net.minecraft.client.renderer.RenderType type) Helper function to cast a RenderType to a RenderTypeExtension and get its DrawBuffer.
-
Method Details
-
flywheel$getDrawBuffer
DrawBuffer flywheel$getDrawBuffer()- Returns:
- The DrawBuffer associated with this RenderType.
-
getDrawBuffer
Helper function to cast a RenderType to a RenderTypeExtension and get its DrawBuffer.- Parameters:
type- The RenderType to get the DrawBuffer from.- Returns:
- The DrawBuffer associated with the given RenderType.
-