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
Nested Classes Modifier and Type Class Description static class
DrawHighlightEvent.HighlightBlock
A variant of the DrawHighlightEvent only called when a block is highlighted.static class
DrawHighlightEvent.HighlightEntity
A variant of the DrawHighlightEvent only called when an entity is highlighted.
-
Field Summary
Fields Modifier and Type Field Description private IRenderTypeBuffer
buffers
private WorldRenderer
context
private ActiveRenderInfo
info
private MatrixStack
matrix
private float
partialTicks
private RayTraceResult
target
-
Constructor Summary
Constructors Constructor Description DrawHighlightEvent(WorldRenderer context, ActiveRenderInfo info, RayTraceResult target, float partialTicks, MatrixStack matrix, IRenderTypeBuffer buffers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRenderTypeBuffer
getBuffers()
WorldRenderer
getContext()
ActiveRenderInfo
getInfo()
MatrixStack
getMatrix()
float
getPartialTicks()
RayTraceResult
getTarget()
-
-
-
Field Detail
-
context
private final WorldRenderer context
-
info
private final ActiveRenderInfo info
-
target
private final RayTraceResult target
-
partialTicks
private final float partialTicks
-
matrix
private final MatrixStack matrix
-
buffers
private final IRenderTypeBuffer buffers
-
-
Constructor Detail
-
DrawHighlightEvent
public DrawHighlightEvent(WorldRenderer context, ActiveRenderInfo info, RayTraceResult target, float partialTicks, MatrixStack matrix, IRenderTypeBuffer buffers)
-
-
Method Detail
-
getContext
public WorldRenderer getContext()
-
getInfo
public ActiveRenderInfo getInfo()
-
getTarget
public RayTraceResult getTarget()
-
getPartialTicks
public float getPartialTicks()
-
getMatrix
public MatrixStack getMatrix()
-
getBuffers
public IRenderTypeBuffer getBuffers()
-
-