Package foundry.veil.api.event
Interface VeilRegisterBlockLayerEvent.Registry
- Enclosing interface:
- VeilRegisterBlockLayerEvent
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Registers additional fixed render buffers.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerBlockLayer
(net.minecraft.client.renderer.RenderType renderType) Registers a custom block render layer.
-
Method Details
-
registerBlockLayer
void registerBlockLayer(net.minecraft.client.renderer.RenderType renderType) Registers a custom block render layer. It should use a small buffer size (256) to reduce the memory allocated to building that layer.
To actually render the layer,
VeilRegisterFixedBuffersEvent.Registry.registerFixedBuffer(VeilRenderLevelStageEvent.Stage, RenderType)
must be called.- Parameters:
renderType
- The render type to add to the block
-