Skip to content
Permalink
Browse files

Adjusted the ore dictionary entries to support only standardized entr…

…y names.
  • Loading branch information...
Ri5ux committed Apr 2, 2019
1 parent 4e45c07 commit 15b345c855c1b99a4c3a614e732ea16b74095183
Showing with 15 additions and 19 deletions.
  1. +5 −0 src/main/java/org/avp/AliensVsPredator.java
  2. +10 −19 src/main/java/org/avp/CraftingHandler.java
@@ -147,6 +147,11 @@ public static BiomeColorHandler biomeColors()
{
return BiomeColorHandler.instance;
}

public static CraftingHandler crafting()
{
return CraftingHandler.instance;
}

public static MaterialHandler materials()
{
@@ -22,41 +22,32 @@
public static final CraftingHandler instance = new CraftingHandler();
private static final ItemStack CHARCOAL = new ItemStack(Items.COAL, 1, 1);

@SubscribeEvent
public static void registerRecipes(RegistryEvent.Register<IRecipe> event)
{
addSmelting();
addSchematics();
}

@SubscribeEvent
public static void registerOres(RegistryEvent.Register<Item> event)
{
OreDictionary.registerOre("copper", ItemHandler.itemIngotCopper);
OreDictionary.registerOre("ingotCopper", ItemHandler.itemIngotCopper);
OreDictionary.registerOre("lithium", ItemHandler.itemIngotLithium);
OreDictionary.registerOre("itemLithium", ItemHandler.itemIngotLithium);
OreDictionary.registerOre("aluminum", ItemHandler.itemIngotAluminum);
OreDictionary.registerOre("ingotAluminum", ItemHandler.itemIngotAluminum);
OreDictionary.registerOre("aluminium", ItemHandler.itemIngotAluminum);
OreDictionary.registerOre("ingotAluminium", ItemHandler.itemIngotAluminum);
OreDictionary.registerOre("oreCopper", BlockHandler.oreCopper);
OreDictionary.registerOre("oreLithium", BlockHandler.oreLithium);
OreDictionary.registerOre("oreAluminum", BlockHandler.oreBauxite);
OreDictionary.registerOre("oreAluminium", BlockHandler.oreBauxite);
OreDictionary.registerOre("oreSilicon", BlockHandler.oreSilicon);
OreDictionary.registerOre("silicon", ItemHandler.itemSilicon);
OreDictionary.registerOre("itemSilicon", ItemHandler.itemSilicon);
OreDictionary.registerOre("polycarbonate", ItemHandler.itemPolycarbonate);
OreDictionary.registerOre("itemPolycarbonate", ItemHandler.itemPolycarbonate);
OreDictionary.registerOre("plastic", ItemHandler.itemPolycarbonate);
OreDictionary.registerOre("itemPlastic", ItemHandler.itemPolycarbonate);
OreDictionary.registerOre("logWood", BlockHandler.gigerLog);
OreDictionary.registerOre("log", BlockHandler.gigerLog);
OreDictionary.registerOre("neodymium", ItemHandler.neodymium);
OreDictionary.registerOre("itemNeodymium", ItemHandler.neodymium);
OreDictionary.registerOre("oreMonazite", BlockHandler.oreMonazite);
OreDictionary.registerOre("cobalt", ItemHandler.cobalt);
OreDictionary.registerOre("oreCobalt", BlockHandler.oreCobalt);
}

@SubscribeEvent
public static void registerRecipes(RegistryEvent.Register<IRecipe> event)
{
addSmelting();
addSchematics();
OreDictionary.registerOre("ingotCobalt", ItemHandler.cobalt);
OreDictionary.registerOre("oreCobalt", BlockHandler.oreCobalt);
}

private static void addSmelting()

0 comments on commit 15b345c

Please sign in to comment.
You can’t perform that action at this time.