Class RenderHighlightEvent.Entity
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderHighlightEvent
net.neoforged.neoforge.client.event.RenderHighlightEvent.Entity
- Enclosing class:
RenderHighlightEvent
Fired before an entity's selection highlight is rendered.
This event is not cancellable, and does not
.invalid reference
have a result
This event is fired on the main Forge event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.RenderHighlightEvent
RenderHighlightEvent.Block, RenderHighlightEvent.Entity
-
Constructor Summary
ConstructorDescriptionEntity
(LevelRenderer levelRenderer, Camera camera, EntityHitResult target, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) -
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.RenderHighlightEvent
getCamera, getLevelRenderer, getMultiBufferSource, getPartialTick, getPoseStack
-
Constructor Details
-
Entity
@Internal public Entity(LevelRenderer levelRenderer, Camera camera, EntityHitResult target, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource)
-
-
Method Details
-
getTarget
Returns the entity hit result.- Overrides:
getTarget
in classRenderHighlightEvent
- Returns:
- the entity hit result
-