Package net.minecraftforge.client.event
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A variant of the DrawSelectionEvent only called when a block is highlighted.static class
A variant of the DrawSelectionEvent only called when an entity is highlighted.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate MultiBufferSource
private LevelRenderer
private Camera
private PoseStack
private float
private HitResult
-
Constructor Summary
ConstructorDescriptionDrawSelectionEvent(LevelRenderer context, Camera info, HitResult target, float partialTicks, PoseStack matrix, MultiBufferSource buffers)
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
context
-
info
-
target
-
partialTicks
private final float partialTicks -
matrix
-
buffers
-
-
Constructor Details
-
DrawSelectionEvent
public DrawSelectionEvent(LevelRenderer context, Camera info, HitResult target, float partialTicks, PoseStack matrix, MultiBufferSource buffers)
-
-
Method Details
-
getContext
-
getInfo
-
getTarget
-
getPartialTicks
public float getPartialTicks() -
getMatrix
-
getBuffers
-