Interface WorldRenderEvents.BeforeBlockOutline
- Enclosing class:
- WorldRenderEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Environment(CLIENT)
@FunctionalInterface
public static interface WorldRenderEvents.BeforeBlockOutline
-
Method Summary
Modifier and TypeMethodDescriptionboolean
beforeBlockOutline
(WorldRenderContext context, @Nullable net.minecraft.util.hit.HitResult hitResult) Event signature forWorldRenderEvents.BEFORE_BLOCK_OUTLINE
.
-
Method Details
-
beforeBlockOutline
boolean beforeBlockOutline(WorldRenderContext context, @Nullable @Nullable net.minecraft.util.hit.HitResult hitResult) Event signature forWorldRenderEvents.BEFORE_BLOCK_OUTLINE
.- Parameters:
context
- Access to state and parameters available during world rendering.hitResult
- The game object currently under the crosshair target. Normally equivalent toMinecraftClient.crosshairTarget
. Provided for convenience.- Returns:
- true if vanilla block outline rendering should happen.
Returning false prevents
WorldRenderEvents.BLOCK_OUTLINE
from invoking and also skips the vanilla block outline render, but has no effect on other subscribers to this event.
-