use of com.bluepowermod.client.render.RendererBlockBase.EnumFaceType in project BluePower by Qmunity.
the class BlockContainerBase method registerBlockIcons.
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
textures = new HashMap<String, IIcon>();
for (EnumFaceType faceType : EnumFaceType.values()) {
boolean ejecting = false;
boolean powered = false;
do {
do {
String iconName = getIconName(faceType, ejecting, powered);
if (!textures.containsKey(iconName)) {
textures.put(iconName, iconRegister.registerIcon(iconName));
}
powered = !powered;
} while (powered && IBluePowered.class.isAssignableFrom(getTileEntity()));
ejecting = !ejecting;
} while (ejecting && IEjectAnimator.class.isAssignableFrom(getTileEntity()));
}
}
Aggregations