Class MapDecorationRenderTests.TestDecorationRenderer
java.lang.Object
net.neoforged.neoforge.debug.client.MapDecorationRenderTests.TestDecorationRenderer
- All Implemented Interfaces:
IMapDecorationRenderer
- Enclosing class:
MapDecorationRenderTests
private static final class MapDecorationRenderTests.TestDecorationRenderer
extends Object
implements IMapDecorationRenderer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTestDecorationRenderer
(net.minecraft.util.context.ContextKey<Integer> customColorKey) -
Method Summary
Modifier and TypeMethodDescriptionboolean
render
(net.minecraft.client.renderer.state.MapRenderState.MapDecorationRenderState decoration, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, net.minecraft.client.renderer.state.MapRenderState mapRenderState, net.minecraft.client.resources.MapDecorationTextureManager decorationTextures, boolean inItemFrame, int packedLight, int index) Render the givenMapDecoration
on the map.
-
Field Details
-
customColorKey
-
-
Constructor Details
-
TestDecorationRenderer
TestDecorationRenderer(net.minecraft.util.context.ContextKey<Integer> customColorKey)
-
-
Method Details
-
render
public boolean render(net.minecraft.client.renderer.state.MapRenderState.MapDecorationRenderState decoration, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, net.minecraft.client.renderer.state.MapRenderState mapRenderState, net.minecraft.client.resources.MapDecorationTextureManager decorationTextures, boolean inItemFrame, int packedLight, int index) Description copied from interface:IMapDecorationRenderer
Render the givenMapDecoration
on the map. If this method returns true, the vanilla rendering will be canceled. Otherwise, it will render above whatever is rendered in this method, if anything- Specified by:
render
in interfaceIMapDecorationRenderer
- Parameters:
decoration
- The state decoration to be renderedposeStack
- ThePoseStack
to render the decoration withbufferSource
- TheMultiBufferSource
to render the decoration withmapRenderState
- The state of the map being rendereddecorationTextures
- The manager holding map decoration spritesinItemFrame
- Whether the map is being rendered in an item framepackedLight
- The packed light valueindex
- The z index of the decoration being rendered- Returns:
- true to cancel vanilla rendering
-