2014-05-18 05:19:23 +02:00
|
|
|
package appeng.block.crafting;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
|
|
import net.minecraft.item.Item;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.util.IIcon;
|
2014-07-10 07:44:01 +02:00
|
|
|
import net.minecraftforge.common.util.ForgeDirection;
|
|
|
|
import appeng.api.AEApi;
|
|
|
|
import appeng.client.render.BaseBlockRender;
|
2014-07-11 06:46:51 +02:00
|
|
|
import appeng.client.render.blocks.RenderBlockCraftingCPUMonitor;
|
2014-05-26 03:58:44 +02:00
|
|
|
import appeng.client.texture.ExtraBlockTextures;
|
2014-05-18 05:19:23 +02:00
|
|
|
import appeng.tile.crafting.TileCraftingMonitorTile;
|
|
|
|
|
|
|
|
public class BlockCraftingMonitor extends BlockCraftingUnit
|
|
|
|
{
|
|
|
|
|
|
|
|
public BlockCraftingMonitor() {
|
|
|
|
super( BlockCraftingMonitor.class );
|
|
|
|
setTileEntiy( TileCraftingMonitorTile.class );
|
|
|
|
}
|
|
|
|
|
2014-07-10 07:44:01 +02:00
|
|
|
@Override
|
|
|
|
protected Class<? extends BaseBlockRender> getRenderer()
|
|
|
|
{
|
2014-07-11 06:46:51 +02:00
|
|
|
return RenderBlockCraftingCPUMonitor.class;
|
2014-07-10 07:44:01 +02:00
|
|
|
}
|
|
|
|
|
2014-05-18 05:19:23 +02:00
|
|
|
@Override
|
|
|
|
public IIcon getIcon(int direction, int metadata)
|
|
|
|
{
|
2014-07-10 07:44:01 +02:00
|
|
|
if ( direction != ForgeDirection.SOUTH.ordinal() )
|
|
|
|
return AEApi.instance().blocks().blockCraftingUnit.block().getIcon( direction, metadata );
|
|
|
|
|
2014-05-18 05:19:23 +02:00
|
|
|
switch (metadata)
|
|
|
|
{
|
|
|
|
default:
|
|
|
|
case 0:
|
|
|
|
return super.getIcon( 0, 0 );
|
|
|
|
case 0 | FLAG_FORMED:
|
2014-05-26 03:58:44 +02:00
|
|
|
return ExtraBlockTextures.BlockCraftingMonitorFit.getIcon();
|
2014-05-18 05:19:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void getSubBlocks(Item i, CreativeTabs c, List l)
|
|
|
|
{
|
|
|
|
l.add( new ItemStack( this, 1, 0 ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|