Class DrawSelectionEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.DrawSelectionEvent
Direct Known Subclasses:
DrawSelectionEvent.HighlightBlock, DrawSelectionEvent.HighlightEntity

public class DrawSelectionEvent extends net.minecraftforge.eventbus.api.Event
An event called whenever the selection highlight around a block or entity is about to be rendered. Canceling this event stops the selection highlight from being rendered.
  • Field Details

    • levelRenderer

      private final LevelRenderer levelRenderer
    • camera

      private final Camera camera
    • target

      private final HitResult target
    • partialTicks

      private final float partialTicks
    • poseStack

      private final PoseStack poseStack
    • multiBufferSource

      private final MultiBufferSource multiBufferSource
  • Constructor Details

  • Method Details

    • getLevelRenderer

      public LevelRenderer getLevelRenderer()
    • getCamera

      public Camera getCamera()
    • getTarget

      public HitResult getTarget()
    • getPartialTicks

      public float getPartialTicks()
    • getPoseStack

      public PoseStack getPoseStack()
    • getMultiBufferSource

      public MultiBufferSource getMultiBufferSource()