2013-09-03 22:01:25 +02:00
|
|
|
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;
|
2013-09-04 02:16:40 +02:00
|
|
|
import com.pahimar.ee3.lib.RenderIds;
|
2013-09-03 22:01:25 +02:00
|
|
|
import com.pahimar.ee3.lib.Strings;
|
|
|
|
import com.pahimar.ee3.tileentity.TileRenderingTank;
|
|
|
|
|
|
|
|
public class BlockRenderingTank extends BlockEE {
|
|
|
|
|
2013-09-07 04:47:12 +02:00
|
|
|
public BlockRenderingTank(int id) {
|
|
|
|
|
|
|
|
super(id, Material.anvil);
|
|
|
|
this.setUnlocalizedName(Strings.RENDERING_TANK_NAME);
|
|
|
|
this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 3.0F, 1.0F);
|
2013-09-03 22:01:25 +02:00
|
|
|
this.setCreativeTab(EquivalentExchange3.tabsEE3);
|
2013-09-07 04:47:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2013-09-03 22:01:25 +02:00
|
|
|
public String getUnlocalizedName() {
|
2013-09-07 04:47:12 +02:00
|
|
|
|
2013-09-03 22:01:25 +02:00
|
|
|
StringBuilder unlocalizedName = new StringBuilder();
|
2013-09-07 04:47:12 +02:00
|
|
|
|
2013-09-03 22:01:25 +02:00
|
|
|
unlocalizedName.append("tile.");
|
|
|
|
unlocalizedName.append(Strings.RESOURCE_PREFIX);
|
|
|
|
unlocalizedName.append(Strings.RENDERING_TANK_NAME);
|
2013-09-07 04:47:12 +02:00
|
|
|
|
2013-09-03 22:01:25 +02:00
|
|
|
return unlocalizedName.toString();
|
|
|
|
}
|
2013-09-07 04:47:12 +02:00
|
|
|
|
|
|
|
@Override
|
2013-09-04 02:16:40 +02:00
|
|
|
public boolean renderAsNormalBlock() {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isOpaqueCube() {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getRenderType() {
|
|
|
|
|
|
|
|
return RenderIds.renderingTank;
|
|
|
|
}
|
2013-09-03 22:01:25 +02:00
|
|
|
|
2013-09-07 04:47:12 +02:00
|
|
|
@Override
|
|
|
|
public TileEntity createNewTileEntity(World world) {
|
|
|
|
|
|
|
|
return new TileRenderingTank();
|
|
|
|
}
|
2013-09-03 22:01:25 +02:00
|
|
|
|
|
|
|
}
|