Refactoring Manager Classes
This commit is contained in:
parent
31ad60f322
commit
c8a4ea033b
5 changed files with 15 additions and 15 deletions
|
|
@ -9,7 +9,7 @@ import com.oitsjustjose.criss_cross.Recipes.WoodchipperRecipes;
|
|||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import net.minecraft.block.Block;
|
||||
|
||||
public class BlockManager
|
||||
public class CCBlocks
|
||||
{
|
||||
public static Block cropomator;
|
||||
public static Block electroextractor;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
package com.oitsjustjose.criss_cross;
|
||||
|
||||
import com.oitsjustjose.criss_cross.Blocks.BlockManager;
|
||||
import com.oitsjustjose.criss_cross.Items.ItemManager;
|
||||
import com.oitsjustjose.criss_cross.Blocks.CCBlocks;
|
||||
import com.oitsjustjose.criss_cross.Items.CCItems;
|
||||
import com.oitsjustjose.criss_cross.Recipes.RecipeHandler;
|
||||
import com.oitsjustjose.criss_cross.Util.CommonProxy;
|
||||
import com.oitsjustjose.criss_cross.Util.ConfigHandler;
|
||||
|
|
@ -29,8 +29,8 @@ public class CrissCross
|
|||
{
|
||||
ConfigHandler.init(event.getSuggestedConfigurationFile());
|
||||
FMLCommonHandler.instance().bus().register(new ConfigHandler());
|
||||
ItemManager.init();
|
||||
BlockManager.init();
|
||||
CCItems.init();
|
||||
CCBlocks.init();
|
||||
proxy.preInit();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.oitsjustjose.criss_cross.Items;
|
|||
|
||||
import net.minecraft.item.Item;
|
||||
|
||||
public class ItemManager
|
||||
public class CCItems
|
||||
{
|
||||
public static Item dusts;
|
||||
public static void init()
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package com.oitsjustjose.criss_cross.Recipes;
|
||||
|
||||
import com.oitsjustjose.criss_cross.Items.ItemManager;
|
||||
import com.oitsjustjose.criss_cross.Items.CCItems;
|
||||
import com.oitsjustjose.criss_cross.TileEntity.TileEntityElectroextractor;
|
||||
import com.oitsjustjose.criss_cross.Util.ConfigHandler;
|
||||
|
||||
|
|
@ -15,8 +15,8 @@ public class ElectroextractorRecipes
|
|||
{
|
||||
TileEntityElectroextractor.addBlockRecipe(Blocks.diamond_ore, new ItemStack(Items.diamond));
|
||||
TileEntityElectroextractor.addBlockRecipe(Blocks.emerald_ore, new ItemStack(Items.emerald));
|
||||
TileEntityElectroextractor.addBlockRecipe(Blocks.iron_ore, new ItemStack(ItemManager.dusts, 1, 0));
|
||||
TileEntityElectroextractor.addBlockRecipe(Blocks.gold_ore, new ItemStack(ItemManager.dusts, 1, 1));
|
||||
TileEntityElectroextractor.addBlockRecipe(Blocks.iron_ore, new ItemStack(CCItems.dusts, 1, 0));
|
||||
TileEntityElectroextractor.addBlockRecipe(Blocks.gold_ore, new ItemStack(CCItems.dusts, 1, 1));
|
||||
TileEntityElectroextractor.addBlockRecipe(Blocks.coal_ore, new ItemStack(Items.coal));
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
package com.oitsjustjose.criss_cross.Recipes;
|
||||
|
||||
import com.oitsjustjose.criss_cross.Blocks.BlockManager;
|
||||
import com.oitsjustjose.criss_cross.Items.ItemManager;
|
||||
import com.oitsjustjose.criss_cross.Blocks.CCBlocks;
|
||||
import com.oitsjustjose.criss_cross.Items.CCItems;
|
||||
import com.oitsjustjose.criss_cross.Util.ConfigHandler;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
|
@ -16,8 +16,8 @@ public class RecipeHandler
|
|||
{
|
||||
cropomatorRecipe();
|
||||
electroextractorRecipe();
|
||||
GameRegistry.addSmelting(new ItemStack(ItemManager.dusts, 1, 0), new ItemStack(Items.iron_ingot), 1.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(ItemManager.dusts, 1, 1), new ItemStack(Items.gold_ingot), 1.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(CCItems.dusts, 1, 0), new ItemStack(Items.iron_ingot), 1.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(CCItems.dusts, 1, 1), new ItemStack(Items.gold_ingot), 1.0F);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ public class RecipeHandler
|
|||
System.out.println("[CrissCross] Item " + ConfigHandler.electroextractorRecipeItem + " could not be added as part of the recipe of the cropomator. Please confirm you have the name and formatting correct.");
|
||||
}
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(BlockManager.electroextractor), new Object[]
|
||||
GameRegistry.addRecipe(new ItemStack(CCBlocks.electroextractor), new Object[]
|
||||
{
|
||||
"I#I",
|
||||
"SCS",
|
||||
|
|
@ -66,7 +66,7 @@ public class RecipeHandler
|
|||
System.out.println("[CrissCross] Item " + ConfigHandler.cropomatorRecipeItem + " could not be added as part of the recipe of the cropomator. Please confirm you have the name and formatting correct.");
|
||||
}
|
||||
|
||||
GameRegistry.addRecipe(new ItemStack(BlockManager.cropomator), new Object[]
|
||||
GameRegistry.addRecipe(new ItemStack(CCBlocks.cropomator), new Object[]
|
||||
{
|
||||
"I#I",
|
||||
"SCS",
|
||||
|
|
|
|||
Loading…
Reference in a new issue