Interface MapDecorationRenderStateModifier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function interface for render state modifiers that target MapDecorations. Useful for adding custom data for rendering
in
IMapDecorationRenderers.-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(MapItemSavedData mapItemSavedData, MapRenderState mapRenderState, MapRenderState.MapDecorationRenderState mapDecorationRenderState) Called when the registeredMapDecorationTypeis added to aMapRenderState.
-
Method Details
-
accept
void accept(MapItemSavedData mapItemSavedData, MapRenderState mapRenderState, MapRenderState.MapDecorationRenderState mapDecorationRenderState) Called when the registeredMapDecorationTypeis added to aMapRenderState.- Parameters:
mapItemSavedData- The map SavedData.mapRenderState- The render state of the map after the texture has been set and custom data is added.mapDecorationRenderState- The decoration render state after vanilla has set it up.
-