Package net.minecraftforge.client.event
Class DrawHighlightEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.DrawHighlightEvent
- Direct Known Subclasses:
DrawHighlightEvent.HighlightBlock
,DrawHighlightEvent.HighlightEntity
public class DrawHighlightEvent
extends net.minecraftforge.eventbus.api.Event
An event called whenever the selection highlight around blocks is about to be rendered.
Canceling this event stops the selection highlight from being rendered.
TODO: Rename to DrawSelectionEvent
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A variant of the DrawHighlightEvent only called when a block is highlighted.static class
A variant of the DrawHighlightEvent 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 final IRenderTypeBuffer
private final WorldRenderer
private final ActiveRenderInfo
private final MatrixStack
private final float
private final RayTraceResult
-
Constructor Summary
ConstructorDescriptionDrawHighlightEvent
(WorldRenderer context, ActiveRenderInfo info, RayTraceResult target, float partialTicks, MatrixStack matrix, IRenderTypeBuffer 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
-
DrawHighlightEvent
public DrawHighlightEvent(WorldRenderer context, ActiveRenderInfo info, RayTraceResult target, float partialTicks, MatrixStack matrix, IRenderTypeBuffer buffers)
-
-
Method Details
-
getContext
-
getInfo
-
getTarget
-
getPartialTicks
public float getPartialTicks() -
getMatrix
-
getBuffers
-