Class RenderHighlightEvent.Block
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderHighlightEvent
net.neoforged.neoforge.client.event.RenderHighlightEvent.Block
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
RenderHighlightEvent
public static class RenderHighlightEvent.Block
extends RenderHighlightEvent
implements net.neoforged.bus.api.ICancellableEvent
Fired before a block's selection highlight is rendered.
This event is cancellable, and does not
.
If the event is cancelled, then the selection highlight will not be rendered.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
ConstructorDescriptionBlock
(LevelRenderer levelRenderer, Camera camera, BlockHitResult target, DeltaTracker deltaTracker, PoseStack poseStack, MultiBufferSource bufferSource) -
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.RenderHighlightEvent
getCamera, getDeltaTracker, getLevelRenderer, getMultiBufferSource, getPoseStack
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Block
@Internal public Block(LevelRenderer levelRenderer, Camera camera, BlockHitResult target, DeltaTracker deltaTracker, PoseStack poseStack, MultiBufferSource bufferSource)
-
-
Method Details
-
getTarget
Returns the block hit result.- Overrides:
getTarget
in classRenderHighlightEvent
- Returns:
- the block hit result
-