public class RenderBlockOverlayEvent
extends net.minecraftforge.eventbus.api.Event
Modifier and Type | Class and Description |
---|---|
static class |
RenderBlockOverlayEvent.OverlayType |
Modifier and Type | Field and Description |
---|---|
private BlockState |
blockForOverlay |
private BlockPos |
blockPos |
private MatrixStack |
mat |
private RenderBlockOverlayEvent.OverlayType |
overlayType |
private PlayerEntity |
player |
Constructor and Description |
---|
RenderBlockOverlayEvent(PlayerEntity player,
MatrixStack mat,
RenderBlockOverlayEvent.OverlayType type,
BlockState block,
BlockPos blockPos) |
Modifier and Type | Method and Description |
---|---|
BlockState |
getBlockForOverlay()
If the overlay type is BLOCK, then this is the block which the overlay is getting it's icon from
|
BlockPos |
getBlockPos() |
MatrixStack |
getMatrixStack() |
RenderBlockOverlayEvent.OverlayType |
getOverlayType()
The type of overlay to occur
|
PlayerEntity |
getPlayer()
The player which the overlay will apply to
|
private final PlayerEntity player
private final MatrixStack mat
private final RenderBlockOverlayEvent.OverlayType overlayType
private final BlockState blockForOverlay
private final BlockPos blockPos
public RenderBlockOverlayEvent(PlayerEntity player, MatrixStack mat, RenderBlockOverlayEvent.OverlayType type, BlockState block, BlockPos blockPos)
public PlayerEntity getPlayer()
public MatrixStack getMatrixStack()
public RenderBlockOverlayEvent.OverlayType getOverlayType()
public BlockState getBlockForOverlay()
public BlockPos getBlockPos()