@SideOnly(Side.CLIENT) /** * When this method is called, your block should register all the icons it needs with the given IconRegister. This * is the only chance you get to register icons. */ @Override public void registerIcons(IconRegister par1IconRegister) { this.icon = new Icon[doornames.length * 2]; for (int i = 0; i < doornames.length; ++i) { this.icon[i] = par1IconRegister.registerIcon("MineFantasy:Furn/" + doornames[i]); this.icon[i + doornames.length] = new IconFlipped(this.icon[i], true, false); } }
@SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) { this.field_150017_a = new IIcon[2]; this.field_150016_b = new IIcon[2]; this.field_150017_a[0] = p_149651_1_.registerIcon(this.getTextureName() + "_upper"); this.field_150016_b[0] = p_149651_1_.registerIcon(this.getTextureName() + "_lower"); this.field_150017_a[1] = new IconFlipped(this.field_150017_a[0], true, false); this.field_150016_b[1] = new IconFlipped(this.field_150016_b[0], true, false); }
@SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) { this.field_150017_a = new IIcon[2]; this.field_150016_b = new IIcon[2]; this.field_150017_a[0] = p_149651_1_.registerIcon(("epicproportionsmod:BlockJenDoor_upper")); this.field_150016_b[0] = p_149651_1_.registerIcon(("epicproportionsmod:BlockJenDoor_lower")); this.field_150017_a[1] = new IconFlipped(this.field_150017_a[0], true, false); this.field_150016_b[1] = new IconFlipped(this.field_150016_b[0], true, false); }
@SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) { this.field_150017_a = new IIcon[2]; this.field_150016_b = new IIcon[2]; this.field_150017_a[0] = p_149651_1_.registerIcon("epicproportionsmod:BlockPatDoor_upper"); this.field_150016_b[0] = p_149651_1_.registerIcon("epicproportionsmod:BlockPatDoor_lower"); this.field_150017_a[1] = new IconFlipped(this.field_150017_a[0], true, false); this.field_150016_b[1] = new IconFlipped(this.field_150016_b[0], true, false); }
public SidedIcons(IIcon front, IIcon sideUp, IIcon sideDown, IIcon sideFacingLeft, IIcon back ) { IIcon sideFacingRight=new IconFlipped(sideFacingLeft, true, false); Debug.mark(); //TODO fix this icon matrix iconMatrix=new IIcon[][] { {back, front, sideUp, sideUp, sideUp, sideUp}, {front, back, sideDown, sideDown, sideDown, sideDown}, {sideDown, sideDown, back, front, sideFacingRight, sideFacingLeft}, {sideUp, sideUp, front, back, sideFacingLeft, sideFacingRight}, {sideFacingRight, sideFacingRight, sideFacingLeft, sideFacingRight, back, front}, {sideFacingLeft, sideFacingLeft, sideFacingRight, sideFacingLeft, front, back} }; }
@Override @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iconRegister) { blockIcon = iconRegister.registerIcon(Reference.MOD_ID + ":" + imagePath + "_lower"); topDoorIcon = iconRegister.registerIcon(Reference.MOD_ID + ":" + imagePath + "_upper"); this.flippedIcons[0] = new IconFlipped(blockIcon, true, false); this.flippedIcons[1] = new IconFlipped(topDoorIcon, true, false); }
@Override public void registerBlockIcons(IIconRegister registerer) { textureSide = registerer.registerIcon(Cellars.MODID + ":" + "cellarDoorSide"); textureUpper = registerer.registerIcon(Cellars.MODID + ":" + "cellarDoorUpper"); textureLower = registerer.registerIcon(Cellars.MODID + ":" + "cellarDoorLower"); textureUpperFlipped = new IconFlipped(textureUpper, true, false); textureLowerFlipped = new IconFlipped(textureLower, true, false); }
public void registerBlockIcons(IIconRegister p_149651_1_) { this.field_150017_a = new IIcon[2]; this.field_150016_b = new IIcon[2]; this.field_150017_a[0] = p_149651_1_.registerIcon(this.getTextureName() + "_upper"); this.field_150016_b[0] = p_149651_1_.registerIcon(this.getTextureName() + "_lower"); this.field_150017_a[1] = new IconFlipped(this.field_150017_a[0], true, false); this.field_150016_b[1] = new IconFlipped(this.field_150016_b[0], true, false); }
@Override @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iIconRegister) { iconBuffer = new IIcon[2][12]; // the 6 sides in OFF state iconBuffer[0][0] = iIconRegister.registerIcon(getBottomIconKey(false)); iconBuffer[0][1] = iIconRegister.registerIcon(getTopIconKey(false)); iconBuffer[0][2] = iIconRegister.registerIcon(getBackIconKey(false)); iconBuffer[0][3] = iIconRegister.registerIcon(getMachineFrontIconKey(false)); iconBuffer[0][4] = iIconRegister.registerIcon(getSideIconKey(false)); iconBuffer[0][5] = iIconRegister.registerIcon(getSideIconKey(false)); // the extra parts in OFF state iconBuffer[0][6] = iIconRegister.registerIcon(EnderIOAddons.DOMAIN + ":chargerBottom"); iconBuffer[0][7] = iIconRegister.registerIcon(getTopIconKey(false)); iconBuffer[0][8] = iIconRegister.registerIcon(EnderIOAddons.DOMAIN + ":chargerBar"); iconBuffer[0][9] = iIconRegister.registerIcon(EnderIOAddons.DOMAIN + ":tcomTrayTop"); // the 6 sides in ON state iconBuffer[1][0] = iIconRegister.registerIcon(getBottomIconKey(true)); iconBuffer[1][1] = iIconRegister.registerIcon(getTopIconKey(true)); iconBuffer[1][2] = iIconRegister.registerIcon(getBackIconKey(true)); iconBuffer[1][3] = iIconRegister.registerIcon(getMachineFrontIconKey(true)); iconBuffer[1][4] = iIconRegister.registerIcon(getSideIconKey(true)); iconBuffer[1][5] = iIconRegister.registerIcon(getSideIconKey(true)); // the extra parts in OFF state iconBuffer[1][6] = iIconRegister.registerIcon(EnderIOAddons.DOMAIN + ":chargerBottomActive"); iconBuffer[1][7] = iIconRegister.registerIcon(EnderIOAddons.DOMAIN + ":chargerTop"); iconBuffer[1][8] = new IconFlipped(iIconRegister.registerIcon(EnderIOAddons.DOMAIN + ":chargerBar"), true, false); iconBuffer[1][9] = iIconRegister.registerIcon(EnderIOAddons.DOMAIN + ":tcomTrayTop"); registerOverlayIcons(iIconRegister); }
@SideOnly(Side.CLIENT) @Override public void registerBlockIcons(IIconRegister iconRegister) { this.iconTop = new IIcon[2]; this.iconBottom = new IIcon[2]; this.iconTop[0] = iconRegister.registerIcon(SnapDoors.modId + ":" + this.getTextureName() + "_upper"); this.iconBottom[0] = iconRegister.registerIcon(SnapDoors.modId + ":" + this.getTextureName() + "_lower"); this.iconTop[1] = new IconFlipped(this.iconTop[0], true, false); this.iconBottom[1] = new IconFlipped(this.iconBottom[0], true, false); }
@SideOnly(Side.CLIENT) /** * When this method is called, your block should register all the icons it needs with the given IconRegister. This * is the only chance you get to register icons. */ public void registerIcons(IconRegister par1IconRegister) { this.field_111044_a = new Icon[2]; this.field_111043_b = new Icon[2]; this.field_111044_a[0] = par1IconRegister.registerIcon(RunesAndSilver.modid + ":door_Rune" + "_upper"); this.field_111043_b[0] = par1IconRegister.registerIcon(RunesAndSilver.modid + ":door_Rune" + "_lower"); this.field_111044_a[1] = new IconFlipped(this.field_111044_a[0], true, false); this.field_111043_b[1] = new IconFlipped(this.field_111043_b[0], true, false); }
@SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister iiconRegister) { this.upperIcon[0] = iiconRegister.registerIcon(PrivatizerMod.MODID + ":private_door_upper"); this.lowerIcon[0] = iiconRegister.registerIcon(PrivatizerMod.MODID + ":private_door_lower"); this.upperIcon[1] = new IconFlipped(this.upperIcon[0], true, false); this.lowerIcon[1] = new IconFlipped(this.lowerIcon[0], true, false); this.upperPasswordIcon[0] = iiconRegister.registerIcon(PrivatizerMod.MODID + ":password_door_upper"); this.lowerPasswordIcon[0] = iiconRegister.registerIcon(PrivatizerMod.MODID + ":password_door_lower"); this.upperPasswordIcon[1] = new IconFlipped(this.upperPasswordIcon[0], true, false); this.lowerPasswordIcon[1] = new IconFlipped(this.lowerPasswordIcon[0], true, false); }
@SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) { this.field_150017_a = new IIcon[2]; this.field_150016_b = new IIcon[2]; this.field_150017_a[0] = p_149651_1_.registerIcon("securitycraft:reinforcedDoorUpper"); this.field_150016_b[0] = p_149651_1_.registerIcon("securitycraft:reinforcedDoorLower"); this.field_150017_a[1] = new IconFlipped(this.field_150017_a[0], true, false); this.field_150016_b[1] = new IconFlipped(this.field_150016_b[0], true, false); }
@Override @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister p_149651_1_){ field_150017_a = new IIcon[2]; field_150016_b = new IIcon[2]; field_150017_a[0] = p_149651_1_.registerIcon("securitycraft:reinforcedDoorUpper"); field_150016_b[0] = p_149651_1_.registerIcon("securitycraft:reinforcedDoorLower"); field_150017_a[1] = new IconFlipped(field_150017_a[0], true, false); field_150016_b[1] = new IconFlipped(field_150016_b[0], true, false); }
@Override @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister p_149651_1_) { field_150017_a = new IIcon[2]; field_150016_b = new IIcon[2]; field_150017_a[0] = p_149651_1_.registerIcon("securitycraft:scannerDoorUpper"); field_150016_b[0] = p_149651_1_.registerIcon("securitycraft:reinforcedDoorLower"); field_150017_a[1] = new IconFlipped(field_150017_a[0], true, false); field_150016_b[1] = new IconFlipped(field_150016_b[0], true, false); }
@Override public void registerBlockIcons(IIconRegister icon) { bottomIcon = icon.registerIcon(getTextureName() + "_lower"); topIcon = icon.registerIcon(getTextureName() + "_upper"); bottomFlippedIcon = new IconFlipped(bottomIcon, true, false); topFlippedIcon = new IconFlipped(topIcon, true, false); }
@SideOnly(Side.CLIENT) public void func_94332_a(IconRegister p_94332_1_) { this.field_111044_a = new Icon[2]; this.field_111043_b = new Icon[2]; this.field_111044_a[0] = p_94332_1_.func_94245_a(this.func_111023_E() + "_upper"); this.field_111043_b[0] = p_94332_1_.func_94245_a(this.func_111023_E() + "_lower"); this.field_111044_a[1] = new IconFlipped(this.field_111044_a[0], true, false); this.field_111043_b[1] = new IconFlipped(this.field_111043_b[0], true, false); }
@SideOnly(Side.CLIENT) /** * When this method is called, your block should register all the icons it needs with the given IconRegister. This * is the only chance you get to register icons. */ public void registerIcons(IconRegister par1IconRegister) { this.field_111044_a = new Icon[2]; this.field_111043_b = new Icon[2]; this.field_111044_a[0] = par1IconRegister.registerIcon(this.getTextureName() + "_upper"); this.field_111043_b[0] = par1IconRegister.registerIcon(this.getTextureName() + "_lower"); this.field_111044_a[1] = new IconFlipped(this.field_111044_a[0], true, false); this.field_111043_b[1] = new IconFlipped(this.field_111043_b[0], true, false); }
@SideOnly(Side.CLIENT) public void registerIcons(IconRegister par1IconRegister) { this.iconArray = new Icon[doorIconNames.length * 2]; for (int i = 0; i < doorIconNames.length; ++i) { this.iconArray[i] = par1IconRegister.registerIcon(doorIconNames[i]); this.iconArray[i + doorIconNames.length] = new IconFlipped(this.iconArray[i], true, false); } }
@SideOnly(Side.CLIENT) public void registerBlockIcons(final IIconRegister par1IIconRegister) { (this.icons = new IIcon[3])[0] = par1IIconRegister.registerIcon("extrautils:conveyor_top"); this.icons[1] = par1IIconRegister.registerIcon("extrautils:conveyor_side"); this.icons[2] = (IIcon)new IconFlipped(this.icons[1], true, false); }
@SideOnly(Side.CLIENT) public IIcon func_149673_e(IBlockAccess world, int x, int y, int z, int side) { TileEntityBarrel barrel = (TileEntityBarrel)Utils.getTileEntityPreferNotCreating(world, x, y, z); if (barrel == null) { return Blocks.field_150344_f.func_149673_e(world, x, y, z, side); } int levelStructural = barrel.coreUpgrades.levelStructural; boolean ghosting = barrel.getStorage().isGhosting(); boolean linked = barrel.getLinked(); boolean sideIsLabel = (barrel.sideUpgrades[side] == UpgradeSide.FRONT) || (barrel.sideUpgrades[side] == UpgradeSide.STICKER); IIcon ret = StructuralLevel.LEVELS[levelStructural].clientData.getIconLabel(); if (barrel.overlaying) { if (barrel.sideUpgrades[side] == UpgradeSide.HOPPER) { ret = text_sidehopper; } else if (barrel.sideUpgrades[side] == UpgradeSide.REDSTONE) { ret = text_siders; } else if (sideIsLabel) { if ((ghosting) && (linked)) { ret = text_locklinked; } else if (ghosting) { ret = text_lock; } else if (linked) { ret = text_linked; } } } else if (((side == 0) || (side == 1)) && (sideIsLabel)) { ret = StructuralLevel.LEVELS[levelStructural].clientData.getIconLabelTop(); } else if (((side == 0) || (side == 1)) && (!sideIsLabel)) { ret = StructuralLevel.LEVELS[levelStructural].clientData.getIconTop(); } else if (sideIsLabel) { ret = StructuralLevel.LEVELS[levelStructural].clientData.getIconLabel(); } else { ret = StructuralLevel.LEVELS[levelStructural].clientData.getIconSide(); } return side == 0 ? new IconFlipped(ret, true, false) : ret; }