public class InfoRendererImage extends java.lang.Object implements IInfoRenderer
IInfoRenderer.Block| Constructor and Description |
|---|
InfoRendererImage(net.minecraft.util.ResourceLocation image,
int imageX,
int imageY,
int imageWidth,
int imageHeight) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawInformation(Book book,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.math.RayTraceResult rayTrace,
net.minecraft.entity.player.EntityPlayer player)
Draws information on screen while the player is holding the guide and looking at the block.
|
public InfoRendererImage(net.minecraft.util.ResourceLocation image,
int imageX,
int imageY,
int imageWidth,
int imageHeight)
public void drawInformation(Book book, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.block.state.IBlockState state, net.minecraft.util.math.RayTraceResult rayTrace, net.minecraft.entity.player.EntityPlayer player)
IInfoRendererdrawInformation in interface IInfoRendererbook - - The book this instance belongs toworld - - The current worldpos - - The position of the block being looked atstate - - The current state of the blockrayTrace - - A RayTraceResult containing data about the block currently looked atplayer - - The player looking at the block