Package net.minecraftforge.client.event
Class RenderHighlightEvent.Block
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderHighlightEvent
net.minecraftforge.client.event.RenderHighlightEvent.Block
- Enclosing class:
RenderHighlightEvent
Fired before a block's selection highlight is rendered.
This event is cancellable, and does not have a result. If the event is cancelled, then the selection highlight will not be rendered.
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.minecraftforge.client.event.RenderHighlightEvent
RenderHighlightEvent.Block, RenderHighlightEvent.Entity
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionBlock
(LevelRenderer levelRenderer, Camera camera, BlockHitResult target, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource) -
Method Summary
Methods inherited from class net.minecraftforge.client.event.RenderHighlightEvent
getCamera, getLevelRenderer, getMultiBufferSource, getPartialTick, getPoseStack
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Block
@Internal public Block(LevelRenderer levelRenderer, Camera camera, BlockHitResult target, float partialTick, PoseStack poseStack, MultiBufferSource bufferSource)
-
-
Method Details
-
getTarget
Returns the block hit result.- Overrides:
getTarget
in classRenderHighlightEvent
- Returns:
- the block hit result
-