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 final Camera
private final LevelRenderer
private final MultiBufferSource
private final float
private final PoseStack
private final HitResult
-
Constructor Summary
ConstructorDescriptionDrawSelectionEvent
(LevelRenderer levelRenderer, Camera camera, HitResult target, float partialTicks, PoseStack poseStack, MultiBufferSource multiBufferSource) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
levelRenderer
-
camera
-
target
-
partialTicks
private final float partialTicks -
poseStack
-
multiBufferSource
-
-
Constructor Details
-
DrawSelectionEvent
public DrawSelectionEvent(LevelRenderer levelRenderer, Camera camera, HitResult target, float partialTicks, PoseStack poseStack, MultiBufferSource multiBufferSource)
-
-
Method Details
-
getLevelRenderer
-
getCamera
-
getTarget
-
getPartialTicks
public float getPartialTicks() -
getPoseStack
-
getMultiBufferSource
-