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 BlockState
private final BlockPos
private final MatrixStack
private final RenderBlockOverlayEvent.OverlayType
private final PlayerEntity
-
Constructor Summary
ConstructorDescriptionRenderBlockOverlayEvent
(PlayerEntity player, MatrixStack mat, 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
-
mat
-
overlayType
-
blockForOverlay
-
blockPos
-
-
Constructor Details
-
RenderBlockOverlayEvent
public RenderBlockOverlayEvent(PlayerEntity player, MatrixStack mat, RenderBlockOverlayEvent.OverlayType type, BlockState block, BlockPos blockPos)
-
-
Method Details
-
getPlayer
The player which the overlay will apply to -
getMatrixStack
-
getOverlayType
The type of overlay to occur -
getBlockForOverlay
If the overlay type is BLOCK, then this is the block which the overlay is getting it's icon from -
getBlockPos
-