Java Code Examples for net.minecraft.client.renderer.texture.IIconRegister.registerIcon()

The following are Jave code examples for showing how to use registerIcon() of the net.minecraft.client.renderer.texture.IIconRegister class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: PAYDAY   File: LobbyBlock.java   View Source Code Vote up 5 votes
@Override
public void registerBlockIcons(IIconRegister register) {
	super.registerBlockIcons(register);
	LobbyIcon = register.registerIcon(PAYDAY.MODID + ":lobby");
	OnePlayerIcon = register.registerIcon(PAYDAY.MODID + ":lobby_1");
	TwoPlayersIcon = register.registerIcon(PAYDAY.MODID + ":lobby_2");
	ThreePlayersIcon = register.registerIcon(PAYDAY.MODID + ":lobby_3");
	FourPlayersIcon = register.registerIcon(PAYDAY.MODID + ":lobby_4");
}
 
Example 2
Project: Steam-and-Steel   File: GlassFluidTank.java   View Source Code Vote up 5 votes
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister reg) {
	
	blockIcon = reg.registerIcon(getTextureName() + "_top");
	sideIcon = reg.registerIcon(getTextureName() + "_side");
	bottomIcon = reg.registerIcon(getTextureName() + "_bottom");
	
}
 
Example 3
Project: minecraft-quiverbow   File: SeedSweeper.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/SeedSweeper");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/SeedSweeper_Empty");
}
 
Example 4
Project: minecraft-quiverbow   File: RedSprayer.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/RedSprayer");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/RedSprayer_Empty");
}
 
Example 5
Project: minecraft-quiverbow   File: OSR.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/OSR");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/OSR_Empty");
}
 
Example 6
Project: Technical   File: GrabberFast.java   View Source Code Vote up 5 votes
@Override
public void registerBlockIcons(IIconRegister iconRegister) {
	this.front = iconRegister.registerIcon(Technical.modName + ":" + "grabberFastFront");
	this.side0 = iconRegister.registerIcon(Technical.modName + ":" + "grabberFastSide0");
	this.side1 = iconRegister.registerIcon(Technical.modName + ":" + "grabberFastSide1");
	this.side2 = iconRegister.registerIcon(Technical.modName + ":" + "grabberFastSide2");
	this.side3 = iconRegister.registerIcon(Technical.modName + ":" + "grabberFastSide3");
	
}
 
Example 7
Project: minecraft-quiverbow   File: SugarEngine.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/SugarGatling");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/SugarGatling_Empty");
}
 
Example 8
Project: minecraft-quiverbow   File: RPG.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/RPG");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/RPG_Empty");
}
 
Example 9
Project: TFCPrimitiveTech   File: ItemSlingshot.java   View Source Code Vote up 5 votes
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister par1IconRegister)
{
	this.itemIcon = par1IconRegister.registerIcon(ModDetails.ModID + ":" + "ItemSlingshot" + "_standby");
	iconArray = new IIcon[slingshotPullIconNameArray.length];

	for (int i = 0; i < iconArray.length; ++i)
		iconArray[i] = par1IconRegister.registerIcon(ModDetails.ModID + ":" + "ItemSlingshot" + "_" + slingshotPullIconNameArray[i]);

}
 
Example 10
Project: TFCPrimitiveTech   File: BlockWoodenPressWet.java   View Source Code Vote up 5 votes
@Override
public void registerBlockIcons(IIconRegister register)
{
    String baseName = "tfcprimitivetech:";
    
    _topIcon = register.registerIcon(baseName + "blockWoodenPressTop");
    _sideIconWet = register.registerIcon(baseName + "blockWoodenPressSide1");
    _sideIconDry = register.registerIcon(baseName + "blockWoodenPressPaper");        
}
 
Example 11
Project: minecraft-quiverbow   File: FenFire.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/FenFire");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/FenFire_Empty");
}
 
Example 12
Project: minecraft-quiverbow   File: RedstoneMagazine.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
@Override
   public void registerIcons(IIconRegister par1IconRegister) 
{ 
	Icon = par1IconRegister.registerIcon("quiverchevsky:ammo/RedstoneAmmo");
	Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:ammo/RedstoneAmmo_Empty");
}
 
Example 13
Project: minecraft-quiverbow   File: CoinTosser_Mod.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister par1IconRegister)
{
	this.Icon = par1IconRegister.registerIcon("quiverchevsky:weapons/CoinTosser_Modified");
	this.Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:weapons/CoinTosser_Modified_Empty");
}
 
Example 14
Project: minecraft-quiverbow   File: LargeNetherrackMagazine.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
@Override
   public void registerIcons(IIconRegister par1IconRegister) 
{ 
	Icon = par1IconRegister.registerIcon("quiverchevsky:ammo/LargeNetherAmmo");
	Icon_Empty = par1IconRegister.registerIcon("quiverchevsky:ammo/LargeNetherAmmo_Empty");
}
 
Example 15
Project: Technical   File: Machine.java   View Source Code Vote up 5 votes
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
	this.blockIcon = iconRegister.registerIcon(Technical.modName + ":" + type.lowerCaseName + "Side");
	this.front = iconRegister.registerIcon(isActive ? Technical.modName + ":" + type.lowerCaseName + "Active" : Technical.modName + ":" + type.lowerCaseName + "Idle");
	this.top = iconRegister.registerIcon(Technical.modName + ":" + type.lowerCaseName + "Top");

}
 
Example 16
Project: connor41-etfuturum2   File: InvertedDaylightDetector.java   View Source Code Vote up 4 votes
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister reg) {
	blockIcon = reg.registerIcon(getTextureName());
}
 
Example 17
Project: TFCPrimitiveTech   File: ItemSharpStone.java   View Source Code Vote up 4 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister registerer)
{
	this.itemIcon = registerer.registerIcon(ModDetails.ModID+":"+"ItemSharpStone");
}
 
Example 18
Project: connor41-etfuturum2   File: BoneBlock.java   View Source Code Vote up 4 votes
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister reg) {
	blockIcon = reg.registerIcon(getTextureName() + "_top");
	sideIcon = reg.registerIcon(getTextureName() + "_side");
}
 
Example 19
Project: TFCPrimitiveTech   File: ItemWoodenTwig.java   View Source Code Vote up 4 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister registerer)
{
	this.itemIcon = registerer.registerIcon(ModDetails.ModID+":"+"ItemWoodenTwig");
}
 
Example 20
Project: TFCPrimitiveTech   File: ItemSoftStone.java   View Source Code Vote up 4 votes
@SideOnly(Side.CLIENT)
@Override
public void registerIcons(IIconRegister registerer)
{
	this.itemIcon = registerer.registerIcon(ModDetails.ModID+":"+"ItemSoftStone");
}