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 Details

    • beforeBlockOutline

      boolean beforeBlockOutline(WorldRenderContext context, @Nullable @Nullable net.minecraft.util.hit.HitResult hitResult)
      Parameters:
      context - Access to state and parameters available during world rendering.
      hitResult - The game object currently under the crosshair target. Normally equivalent to MinecraftClient.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.