Java 类net.minecraft.client.renderer.IconFlipped 实例源码

项目:MineFantasy    文件:BlockDoorMF.java   
@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);
        }
    }
项目:PopularMMOS-EpicProportions-Mod    文件:BlockModDoor.java   
@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);
}
项目:PopularMMOS-EpicProportions-Mod    文件:BlockJenDoor.java   
@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);
}
项目:PopularMMOS-EpicProportions-Mod    文件:BlockPatDoor.java   
@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);
}
项目:PopularMMOS-EpicProportions-Mod    文件:BlockGingerBreadDoor.java   
@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);
}
项目:Enterprise    文件:SidedIcons.java   
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}
    };
}
项目:FusionWarfare    文件:BlockReinforcedDoor.java   
@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);
}
项目:TFC-Cellars-Addon    文件:BlockCellarDoor.java   
@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);
}
项目:Resilience-Client-Source    文件:BlockDoor.java   
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);
}
项目:EnderIOAddons    文件:BlockMagCharger.java   
@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);

}
项目:SnapDoors    文件:BlockDoors.java   
@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);
}
项目:Runes-And-Silver    文件:RuneDoor.java   
@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);
    }
项目:Privatizer    文件:BlockPrivateDoor.java   
@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);
}
项目:SecurityCraft    文件:BlockReinforcedDoor.java   
@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);
}
项目:SecurityCraft    文件:BlockReinforcedDoor.java   
@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);
}
项目:SecurityCraft    文件:BlockScannerDoor.java   
@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);
}
项目:Cauldron    文件:BlockDoor.java   
@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);
}
项目:Cauldron    文件:BlockDoor.java   
@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);
}
项目:Magma    文件:SimpleDoor.java   
@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);
}
项目:RuneCraftery    文件:BlockDoor.java   
@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);
}
项目:RuneCraftery    文件:BlockDoor.java   
@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);
    }
项目:Gizmos    文件:SidedIcons.java   
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}
    };
}
项目:BetterNutritionMod    文件:BlockDoor.java   
@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);
    }
项目:GlowTools    文件:BlockDarkDoor.java   
@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);
    }
}
项目:ExtraUtilities    文件:BlockConveyor.java   
@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);
}
项目:JABBA    文件:BlockBarrel.java   
@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;
}