public class ConnectedIconsProvider extends java.lang.Object implements IBlockIconProvider
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.util.EnumFacing[][] |
sides |
| Constructor and Description |
|---|
ConnectedIconsProvider(MalisisIcon part1,
MalisisIcon part2)
Instantiates a new
ConnectedIconsProvider using given icons. |
ConnectedIconsProvider(java.lang.String name)
Instantiates a new
ConnectedIconsProvider with the given name. |
| Modifier and Type | Method and Description |
|---|---|
MalisisIcon |
getIcon()
Gets the
MalisisIcon with no connection on any side. |
MalisisIcon |
getIcon(net.minecraft.world.IBlockAccess world,
net.minecraft.util.BlockPos pos,
net.minecraft.block.state.IBlockState state,
net.minecraft.util.EnumFacing facing)
Gets the corresponding
MalisisIcon based on the connections available. |
protected void |
initializeIcons()
Initializes the connected icons.
|
void |
registerIcons(net.minecraft.client.renderer.texture.TextureMap map)
Registers the icons to the
TextureMap. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIcon, getParticleIconpublic ConnectedIconsProvider(java.lang.String name)
ConnectedIconsProvider with the given name.name - the namepublic ConnectedIconsProvider(MalisisIcon part1, MalisisIcon part2)
ConnectedIconsProvider using given icons.part1 - the part1part2 - the part2public void registerIcons(net.minecraft.client.renderer.texture.TextureMap map)
IIconRegisterTextureMap.registerIcons in interface IIconRegistermap - the texture mapprotected void initializeIcons()
icons array.public MalisisIcon getIcon()
MalisisIcon with no connection on any side.getIcon in interface IIconProviderpublic MalisisIcon getIcon(net.minecraft.world.IBlockAccess world, net.minecraft.util.BlockPos pos, net.minecraft.block.state.IBlockState state, net.minecraft.util.EnumFacing facing)
MalisisIcon based on the connections available.getIcon in interface IBlockIconProviderworld - the worldpos - the posstate - the statefacing - the facing