Class RenderHighlightEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderHighlightEvent
Direct Known Subclasses:
RenderHighlightEvent.Block, RenderHighlightEvent.Entity

public abstract class RenderHighlightEvent extends net.neoforged.bus.api.Event
Fired before a selection highlight is rendered. See the two subclasses to listen for blocks or entities.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getLevelRenderer

      public LevelRenderer getLevelRenderer()
      Returns the level renderer.
      Returns:
      the level renderer
    • getCamera

      public Camera getCamera()
      Returns the camera information.
      Returns:
      the camera information
    • getTarget

      public HitResult getTarget()
      Returns the hit result which triggered the selection highlight.
      Returns:
      the hit result which triggered the selection highlight
    • getDeltaTracker

      public DeltaTracker getDeltaTracker()
      Returns the delta tracker.
      Returns:
      the delta tracker
    • getPoseStack

      public PoseStack getPoseStack()
      Returns the pose stack used for rendering.
      Returns:
      the pose stack used for rendering
    • getMultiBufferSource

      public MultiBufferSource getMultiBufferSource()
      Returns the source of rendering buffers.
      Returns:
      the source of rendering buffers