2014-04-21 19:13:15 +01:00
|
|
|
package info.jbcs.minecraft.chisel.block;
|
|
|
|
|
|
|
|
|
|
import info.jbcs.minecraft.chisel.api.ICarvable;
|
|
|
|
|
import info.jbcs.minecraft.chisel.carving.CarvableHelper;
|
|
|
|
|
import info.jbcs.minecraft.chisel.carving.CarvableVariation;
|
2014-10-28 21:10:08 -04:00
|
|
|
import info.jbcs.minecraft.chisel.init.ModTabs;
|
2014-12-14 20:05:39 +00:00
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
2014-12-01 19:54:35 -05:00
|
|
|
import net.minecraft.block.Block;
|
2014-04-21 19:13:15 +01:00
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
|
|
|
import net.minecraft.item.Item;
|
|
|
|
|
import net.minecraft.util.IIcon;
|
|
|
|
|
|
|
|
|
|
public class BlockMarbleTexturedOre extends BlockTexturedOre implements ICarvable
|
|
|
|
|
{
|
|
|
|
|
public CarvableHelper carverHelper;
|
|
|
|
|
|
|
|
|
|
public BlockMarbleTexturedOre(Material mat, String baseIcon)
|
|
|
|
|
{
|
|
|
|
|
super(mat, baseIcon);
|
|
|
|
|
|
|
|
|
|
carverHelper = new CarvableHelper();
|
|
|
|
|
|
2014-10-28 21:10:08 -04:00
|
|
|
setCreativeTab(ModTabs.tabChiselBlocks);
|
2014-04-21 19:13:15 +01:00
|
|
|
}
|
|
|
|
|
|
2014-12-01 19:54:35 -05:00
|
|
|
public BlockMarbleTexturedOre(Material mat, Block block) {
|
|
|
|
|
super(mat, block);
|
|
|
|
|
|
|
|
|
|
carverHelper = new CarvableHelper();
|
|
|
|
|
|
|
|
|
|
setCreativeTab(ModTabs.tabChiselBlocks);
|
|
|
|
|
}
|
|
|
|
|
|
2014-04-21 19:13:15 +01:00
|
|
|
@Override
|
|
|
|
|
public IIcon getIcon(int side, int metadata)
|
|
|
|
|
{
|
|
|
|
|
return carverHelper.getIcon(side, metadata);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int damageDropped(int i)
|
|
|
|
|
{
|
|
|
|
|
return i;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void registerBlockIcons(IIconRegister register)
|
|
|
|
|
{
|
|
|
|
|
super.registerBlockIcons(register);
|
|
|
|
|
|
|
|
|
|
carverHelper.registerBlockIcons("Chisel", this, register);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void getSubBlocks(Item block, CreativeTabs tabs, List list)
|
|
|
|
|
{
|
|
|
|
|
carverHelper.registerSubBlocks(this, tabs, list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public CarvableVariation getVariation(int metadata)
|
|
|
|
|
{
|
|
|
|
|
return carverHelper.getVariation(metadata);
|
|
|
|
|
}
|
|
|
|
|
}
|