Package net.minecraftforge.client.event
Class RenderBlockOverlayEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderBlockOverlayEvent
public class RenderBlockOverlayEvent
extends net.minecraftforge.eventbus.api.Event
Called when a block's texture is going to be overlaid on the player's HUD. Cancel this event to prevent the overlay.
-
Nested Class Summary
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 BlockPos
private final BlockState
private final RenderBlockOverlayEvent.OverlayType
private final Player
private final PoseStack
-
Constructor Summary
ConstructorDescriptionRenderBlockOverlayEvent
(Player player, PoseStack poseStack, RenderBlockOverlayEvent.OverlayType type, BlockState block, BlockPos blockPos) -
Method Summary
Modifier and TypeMethodDescriptionIf the overlay type is BLOCK, then this is the block which the overlay is getting it's icon fromThe type of overlay to occurThe player which the overlay will apply toMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
player
-
poseStack
-
overlayType
-
blockState
-
blockPos
-
-
Constructor Details
-
RenderBlockOverlayEvent
public RenderBlockOverlayEvent(Player player, PoseStack poseStack, RenderBlockOverlayEvent.OverlayType type, BlockState block, BlockPos blockPos)
-
-
Method Details
-
getPlayer
The player which the overlay will apply to -
getPoseStack
-
getOverlayType
The type of overlay to occur -
getBlockState
If the overlay type is BLOCK, then this is the block which the overlay is getting it's icon from -
getBlockPos
-