2013-08-23 16:59:50 +02:00
|
|
|
package com.pahimar.ee3.block;
|
|
|
|
|
2013-12-28 01:54:31 +01:00
|
|
|
import com.pahimar.ee3.EquivalentExchange3;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
2013-12-27 02:59:51 +01:00
|
|
|
import net.minecraft.block.Block;
|
2013-08-23 16:59:50 +02:00
|
|
|
import net.minecraft.block.material.Material;
|
2013-12-28 01:54:31 +01:00
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
2013-08-23 16:59:50 +02:00
|
|
|
|
2013-12-27 02:59:51 +01:00
|
|
|
public class BlockEE extends Block
|
2013-12-16 02:26:42 +01:00
|
|
|
{
|
2013-12-27 02:59:51 +01:00
|
|
|
public BlockEE(int id)
|
2013-12-16 02:26:42 +01:00
|
|
|
{
|
2013-12-28 01:54:31 +01:00
|
|
|
this(id, Material.rock);
|
|
|
|
}
|
|
|
|
|
|
|
|
public BlockEE(int id, Material material)
|
|
|
|
{
|
|
|
|
super(id, material);
|
|
|
|
setStepSound(soundStoneFootstep);
|
|
|
|
setCreativeTab(EquivalentExchange3.tabsEE3);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public void registerIcons(IconRegister iconRegister)
|
|
|
|
{
|
|
|
|
blockIcon = iconRegister.registerIcon(String.format("%s", getUnwrappedUnlocalizedName(this.getUnlocalizedName())));
|
|
|
|
}
|
|
|
|
|
|
|
|
protected String getUnwrappedUnlocalizedName(String unlocalizedName)
|
|
|
|
{
|
|
|
|
return unlocalizedName.substring(unlocalizedName.indexOf(".") + 1);
|
2013-08-23 16:59:50 +02:00
|
|
|
}
|
|
|
|
}
|