public class AlternatingBlockIconComponent
extends java.lang.Object
| Constructor and Description |
|---|
AlternatingBlockIconComponent(int alternateIcons)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.IIcon |
getAlternateIcon(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side)
Get one from the alternate icons depending on the coordinates and side of the block.
|
net.minecraft.util.IIcon[] |
getAlternateIcons()
The array of alternate icons.
|
net.minecraft.util.IIcon |
getBaseIcon()
Get the first/base icon.
|
void |
registerIcons(java.lang.String textureNameBase,
net.minecraft.client.renderer.texture.IIconRegister iconRegister)
Register icons
|
public AlternatingBlockIconComponent(int alternateIcons)
alternateIcons - The amount of icons to alternate.public void registerIcons(java.lang.String textureNameBase,
net.minecraft.client.renderer.texture.IIconRegister iconRegister)
textureNameBase - The base texture name.iconRegister - The IIconRegister.public net.minecraft.util.IIcon[] getAlternateIcons()
public net.minecraft.util.IIcon getAlternateIcon(net.minecraft.world.IBlockAccess world,
int x,
int y,
int z,
int side)
world - The world.x - X coordinate.y - Y coordinate.z - Z coordinate.side - The side of the block that will be rendered.public net.minecraft.util.IIcon getBaseIcon()