Search in sources :

Example 6 with IconFlipped

use of net.minecraft.client.renderer.IconFlipped in project ArsMagica2 by Mithion.

the class BlockKeystoneDoor method registerBlockIcons.

@Override
public void registerBlockIcons(IIconRegister register) {
    this.upperIcons = new IIcon[4];
    this.lowerIcons = new IIcon[2];
    this.upperIcons[0] = ResourceManager.RegisterTexture("keystone_door_upper", register);
    this.lowerIcons[0] = ResourceManager.RegisterTexture("keystone_door_lower", register);
    this.upperIcons[1] = new IconFlipped(this.upperIcons[0], true, false);
    this.lowerIcons[1] = new IconFlipped(this.lowerIcons[0], true, false);
    this.upperIcons[2] = ResourceManager.RegisterTexture("keystone_door_upper", register);
    this.upperIcons[3] = new IconFlipped(this.upperIcons[2], true, false);
}
Also used : IconFlipped(net.minecraft.client.renderer.IconFlipped)

Example 7 with IconFlipped

use of net.minecraft.client.renderer.IconFlipped in project SecurityCraft by Geforce132.

the class BlockReinforcedDoor method registerBlockIcons.

@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);
}
Also used : IconFlipped(net.minecraft.client.renderer.IconFlipped) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Example 8 with IconFlipped

use of net.minecraft.client.renderer.IconFlipped in project SecurityCraft by Geforce132.

the class BlockReinforcedDoor method registerIcons.

@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);
}
Also used : IconFlipped(net.minecraft.client.renderer.IconFlipped) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Aggregations

IconFlipped (net.minecraft.client.renderer.IconFlipped)8 SideOnly (cpw.mods.fml.relauncher.SideOnly)6