equivalent-exchange-3/common/com/pahimar/ee3/block/BlockAlchemyTable.java

57 lines
1.4 KiB
Java
Raw Normal View History

package com.pahimar.ee3.block;
import net.minecraft.block.material.Material;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import com.pahimar.ee3.EquivalentExchange3;
import com.pahimar.ee3.lib.Strings;
import com.pahimar.ee3.tileentity.TileAlchemyTable;
public class BlockAlchemyTable extends BlockEE {
2013-09-07 04:47:12 +02:00
public BlockAlchemyTable(int id) {
super(id, Material.iron);
this.setUnlocalizedName(Strings.ALCHEMY_TABLE_NAME);
this.setCreativeTab(EquivalentExchange3.tabsEE3);
2013-09-07 04:47:12 +02:00
}
@Override
public String getUnlocalizedName() {
2013-09-07 04:47:12 +02:00
StringBuilder unlocalizedName = new StringBuilder();
2013-09-07 04:47:12 +02:00
unlocalizedName.append("tile.");
unlocalizedName.append(Strings.RESOURCE_PREFIX);
unlocalizedName.append(Strings.ALCHEMY_TABLE_NAME);
2013-09-07 04:47:12 +02:00
return unlocalizedName.toString();
}
2013-09-07 04:47:12 +02:00
// TODO Finish getting the rendering nice looking
// @Override
// public boolean renderAsNormalBlock() {
//
// return false;
// }
//
// @Override
// public boolean isOpaqueCube() {
//
// return false;
// }
//
// @Override
// public int getRenderType() {
//
// return RenderIds.alchemyTable;
// }
@Override
public TileEntity createNewTileEntity(World world) {
return new TileAlchemyTable();
}
}