Interface FabricLayerRenderState
public interface FabricLayerRenderState
Note: This interface is automatically implemented on
ItemRenderState.LayerRenderState
via Mixin and interface
injection.-
Method Summary
Modifier and TypeMethodDescriptiondefault QuadEmitter
emitter()
Retrieves theQuadEmitter
used to append quads to this layer.
-
Method Details
-
emitter
Retrieves theQuadEmitter
used to append quads to this layer. Calling this method a second time invalidates any prior result. Geometry added to this emitter will not be visible inItemRenderState.LayerRenderState.getQuads()
and will be rendered after any vanilla quads when this layer is rendered. Vertex positions of geometry added to this emitter will automatically be output onItemRenderState.load(Consumer)
(ItemRenderState.LayerRenderState.setVertices(Supplier)
must still be used to add positions of vanilla quads). Adding quads that use animated sprites to this emitter will not automatically callItemRenderState.markAnimated()
. Any quads added to this emitter will be cleared onItemRenderState.LayerRenderState.clear()
.Do not retain references outside the context of this layer.
-