Applied-Energistics-2-tiler.../block/crafting/BlockCraftingMonitor.java

40 lines
853 B
Java
Raw Normal View History

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;
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 );
}
@Override
public IIcon getIcon(int direction, int metadata)
{
switch (metadata)
{
default:
case 0:
return super.getIcon( 0, 0 );
case 0 | FLAG_FORMED:
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 ) );
}
}