Skip to content
Permalink
Browse files

Fixed an issue with ore dictionary registration.

  • Loading branch information...
Ri5ux committed Apr 10, 2019
1 parent 5028e8e commit 8413871aead3713bd453217b87c96bed85c197eb
Showing with 78 additions and 1 deletion.
  1. +78 −1 src/main/java/org/avp/CraftingHandler.java
@@ -30,7 +30,7 @@ public static void registerRecipes(RegistryEvent.Register<IRecipe> event)
}

@SubscribeEvent
public static void registerOres(RegistryEvent.Register<Item> event)
public static void registerOres(RegistryEvent.Register<IRecipe> event)
{
OreDictionary.registerOre("ingotCopper", ItemHandler.itemIngotCopper);
OreDictionary.registerOre("itemLithium", ItemHandler.itemIngotLithium);
@@ -83,6 +83,83 @@ private static void addSchematics()
};
}
});
AssemblyManager.register(new Schematic("reflective_slope", new ItemStack(BlockHandler.slope, 1)) {
@Override
public ItemStack[] getItemsRequired()
{
return new ItemStack[] {
new ItemStack(ItemHandler.itemIngotAluminum, 1),
new ItemStack(Items.IRON_NUGGET, 8),
new ItemStack(ItemHandler.itemArtifactTech, 1),
};
}
});
AssemblyManager.register(new Schematic("reflective_corner", new ItemStack(BlockHandler.corner, 1)) {
@Override
public ItemStack[] getItemsRequired()
{
return new ItemStack[] {
new ItemStack(ItemHandler.itemIngotAluminum, 1),
new ItemStack(Items.IRON_NUGGET, 8),
new ItemStack(ItemHandler.itemArtifactTech, 1),
};
}
});
AssemblyManager.register(new Schematic("reflective_inverter_corner", new ItemStack(BlockHandler.invertedCorner, 1)) {
@Override
public ItemStack[] getItemsRequired()
{
return new ItemStack[] {
new ItemStack(ItemHandler.itemIngotAluminum, 1),
new ItemStack(Items.IRON_NUGGET, 8),
new ItemStack(ItemHandler.itemArtifactTech, 1),
};
}
});
AssemblyManager.register(new Schematic("reflective_ridge", new ItemStack(BlockHandler.ridge, 1)) {
@Override
public ItemStack[] getItemsRequired()
{
return new ItemStack[] {
new ItemStack(ItemHandler.itemIngotAluminum, 1),
new ItemStack(Items.IRON_NUGGET, 8),
new ItemStack(ItemHandler.itemArtifactTech, 1),
};
}
});
AssemblyManager.register(new Schematic("reflective_pyramid", new ItemStack(BlockHandler.pyramid, 1)) {
@Override
public ItemStack[] getItemsRequired()
{
return new ItemStack[] {
new ItemStack(ItemHandler.itemIngotAluminum, 1),
new ItemStack(Items.IRON_NUGGET, 8),
new ItemStack(ItemHandler.itemArtifactTech, 1),
};
}
});
AssemblyManager.register(new Schematic("reflective_inverted_ridge", new ItemStack(BlockHandler.invertedRidge, 1)) {
@Override
public ItemStack[] getItemsRequired()
{
return new ItemStack[] {
new ItemStack(ItemHandler.itemIngotAluminum, 1),
new ItemStack(Items.IRON_NUGGET, 8),
new ItemStack(ItemHandler.itemArtifactTech, 1),
};
}
});
AssemblyManager.register(new Schematic("reflective_inverted_pyramid", new ItemStack(BlockHandler.invertedPyramid, 1)) {
@Override
public ItemStack[] getItemsRequired()
{
return new ItemStack[] {
new ItemStack(ItemHandler.itemIngotAluminum, 1),
new ItemStack(Items.IRON_NUGGET, 8),
new ItemStack(ItemHandler.itemArtifactTech, 1),
};
}
});
AssemblyManager.register(new Schematic("medpod", new ItemStack(BlockHandler.medpod, 1)) {
@Override
public ItemStack[] getItemsRequired()

0 comments on commit 8413871

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