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
IMapDecorationRenderer
s.-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(net.minecraft.world.level.saveddata.maps.MapItemSavedData mapItemSavedData, net.minecraft.client.renderer.state.MapRenderState mapRenderState, net.minecraft.client.renderer.state.MapRenderState.MapDecorationRenderState mapDecorationRenderState) Called when the registeredMapDecorationType
is added to aMapRenderState
.
-
Method Details
-
accept
void accept(net.minecraft.world.level.saveddata.maps.MapItemSavedData mapItemSavedData, net.minecraft.client.renderer.state.MapRenderState mapRenderState, net.minecraft.client.renderer.state.MapRenderState.MapDecorationRenderState mapDecorationRenderState) Called when the registeredMapDecorationType
is 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.
-