Package net.neoforged.neoforge.client
Interface CustomBlockOutlineRenderer
public interface CustomBlockOutlineRenderer
A rendering callback invoked when a block outline is about to be rendered.
Implementations of this class must not capture the level provided in ExtractBlockOutlineRenderStateEvent,
instead the necessary data must be extracted in the event handler and only the extracted data may be captured by
the custom renderer implementation.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrender(BlockOutlineRenderState renderState, MultiBufferSource.BufferSource buffer, PoseStack poseStack, boolean translucentPass, LevelRenderState levelRenderState) Called when the block outline described by the providedBlockOutlineRenderStateis about to be rendered.
-
Method Details
-
render
boolean render(BlockOutlineRenderState renderState, MultiBufferSource.BufferSource buffer, PoseStack poseStack, boolean translucentPass, LevelRenderState levelRenderState) Called when the block outline described by the providedBlockOutlineRenderStateis about to be rendered.- Returns:
trueto suppress vanilla outline rendering
-