Massive rework of configs, items and blocks.

I redone where the items/blocsks are stored and how the configs are
handled to clean up it and give space. You can change the config line to
AWWayofTime if you want to keep the compatibility with old configs. Now
you reference the blocks from the ModBlocks and Items from the ModItems.
This commit is contained in:
Fenn 2014-01-17 21:05:38 +00:00
parent 8601e9faff
commit e3644f2d2b
304 changed files with 3941 additions and 5108 deletions

View file

@ -1,13 +1,12 @@
package WayofTime.alchemicalWizardry.common.spell.simple;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class HomSpellRegistry
{
import java.util.ArrayList;
import java.util.List;
public class HomSpellRegistry {
public static List<HomSpellComponent> spellList = new ArrayList();
public static void registerBasicSpell(ItemStack item, HomSpell spell)
@ -28,7 +27,7 @@ public class HomSpellRegistry
if (item != null)
{
if (item.getItem()instanceof ItemBlock)
if (item.getItem() instanceof ItemBlock)
{
if (testItem.getItem() instanceof ItemBlock)
{
@ -37,8 +36,7 @@ public class HomSpellRegistry
return hsc.getSpell();
}
}
}
else
} else
{
if (!(testItem.getItem() instanceof ItemBlock))
{