Changed Recipes around a bit, Ore Magnet Textures

This commit is contained in:
Ellpeck 2015-08-02 02:04:31 +02:00
parent 0c39a29bc0
commit e88d5b0d46
5 changed files with 8 additions and 3 deletions

View file

@ -21,6 +21,9 @@ import java.util.List;
public class BlockOreMagnet extends BlockContainerBase implements INameableItem{ public class BlockOreMagnet extends BlockContainerBase implements INameableItem{
private IIcon topIcon;
private IIcon bottomIcon;
public BlockOreMagnet(){ public BlockOreMagnet(){
super(Material.rock); super(Material.rock);
this.setHarvestLevel("pickaxe", 0); this.setHarvestLevel("pickaxe", 0);
@ -36,13 +39,15 @@ public class BlockOreMagnet extends BlockContainerBase implements INameableItem{
@Override @Override
public IIcon getIcon(int side, int meta){ public IIcon getIcon(int side, int meta){
return this.blockIcon; return (side == 1 ? this.topIcon : (side == 0 ? this.bottomIcon : this.blockIcon));
} }
@Override @Override
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconReg){ public void registerBlockIcons(IIconRegister iconReg){
this.blockIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER+":"+this.getName()); this.blockIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER+":"+this.getName());
this.topIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER+":"+this.getName()+"Top");
this.bottomIcon = iconReg.registerIcon(ModUtil.MOD_ID_LOWER+":"+this.getName()+"Bottom");
} }
@Override @Override

View file

@ -92,7 +92,7 @@ public class BlockCrafting{
//Lava Factory //Lava Factory
if(ConfigCrafting.LAVA_FACTORY.isEnabled()) if(ConfigCrafting.LAVA_FACTORY.isEnabled())
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockLavaFactoryController), GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockLavaFactoryController),
" C ", "ISI", " L ", "SCS", "ISI", "LLL",
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()), 'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()), 'S', new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL_ADVANCED.ordinal()),
'I', "blockIron", 'I', "blockIron",
@ -100,7 +100,7 @@ public class BlockCrafting{
//Casing //Casing
if(ConfigCrafting.CASING.isEnabled()) if(ConfigCrafting.CASING.isEnabled())
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 8, TheMiscBlocks.LAVA_FACTORY_CASE.ordinal()), GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(InitBlocks.blockMisc, 32, TheMiscBlocks.LAVA_FACTORY_CASE.ordinal()),
"ICI", "ICI",
'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()), 'C', new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.STONE_CASING.ordinal()),
'I', "blockIron")); 'I', "blockIron"));

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 740 B