public class RenderBlockOverlayEvent extends Event
Modifier and Type | Class and Description |
---|---|
static class |
RenderBlockOverlayEvent.OverlayType |
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private IBlockState |
blockForOverlay |
private BlockPos |
blockPos |
private RenderBlockOverlayEvent.OverlayType |
overlayType |
private EntityPlayer |
player |
private float |
renderPartialTicks |
Constructor and Description |
---|
RenderBlockOverlayEvent(EntityPlayer player,
float renderPartialTicks,
RenderBlockOverlayEvent.OverlayType type,
Block block,
int x,
int y,
int z)
Deprecated.
|
RenderBlockOverlayEvent(EntityPlayer player,
float renderPartialTicks,
RenderBlockOverlayEvent.OverlayType type,
IBlockState block,
BlockPos blockPos) |
Modifier and Type | Method and Description |
---|---|
IBlockState |
getBlockForOverlay()
If the overlay type is BLOCK, then this is the block which the overlay is getting it's icon from
|
BlockPos |
getBlockPos() |
RenderBlockOverlayEvent.OverlayType |
getOverlayType()
The type of overlay to occur
|
EntityPlayer |
getPlayer()
The player which the overlay will apply to
|
float |
getRenderPartialTicks() |
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EntityPlayer player
private final float renderPartialTicks
private final RenderBlockOverlayEvent.OverlayType overlayType
private final IBlockState blockForOverlay
private final BlockPos blockPos
@Deprecated public RenderBlockOverlayEvent(EntityPlayer player, float renderPartialTicks, RenderBlockOverlayEvent.OverlayType type, Block block, int x, int y, int z)
public RenderBlockOverlayEvent(EntityPlayer player, float renderPartialTicks, RenderBlockOverlayEvent.OverlayType type, IBlockState block, BlockPos blockPos)
public EntityPlayer getPlayer()
public float getRenderPartialTicks()
public RenderBlockOverlayEvent.OverlayType getOverlayType()
public IBlockState getBlockForOverlay()
public BlockPos getBlockPos()