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,8 +1,10 @@
package WayofTime.alchemicalWizardry.common.items.sigil;
import java.util.ArrayList;
import java.util.List;
import WayofTime.alchemicalWizardry.common.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.common.ModItems;
import WayofTime.alchemicalWizardry.common.items.EnergyItems;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
@ -11,13 +13,11 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.Icon;
import net.minecraft.world.World;
import WayofTime.alchemicalWizardry.common.AlchemicalWizardry;
import WayofTime.alchemicalWizardry.common.items.EnergyItems;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class SigilOfHolding extends EnergyItems
{
import java.util.ArrayList;
import java.util.List;
public class SigilOfHolding extends EnergyItems {
private int invSize = 4;
public static List<Integer> allowedSigils = new ArrayList();
@ -241,8 +241,7 @@ public class SigilOfHolding extends EnergyItems
if (inv[i] != null)
{
filledSlots++;
}
else
} else
{
break;
}
@ -258,8 +257,7 @@ public class SigilOfHolding extends EnergyItems
if (getSelectedSlot(itemStack) + 1 < filledSlots)
{
itemTag.setInteger("selectedSlot", itemTag.getInteger("selectedSlot") + 1);
}
else
} else
{
itemTag.setInteger("selectedSlot", 0);
}
@ -303,7 +301,7 @@ public class SigilOfHolding extends EnergyItems
return false;
}
for (Integer i: allowedSigils)
for (Integer i : allowedSigils)
{
if (i.intValue() == itemID)
{
@ -335,16 +333,16 @@ public class SigilOfHolding extends EnergyItems
public static void initiateSigilOfHolding()
{
allowedSigils.add(new Integer(AlchemicalWizardry.waterSigil.itemID));
allowedSigils.add(new Integer(AlchemicalWizardry.lavaSigil.itemID));
allowedSigils.add(new Integer(AlchemicalWizardry.voidSigil.itemID));
allowedSigils.add(new Integer(AlchemicalWizardry.airSigil.itemID));
allowedSigils.add(new Integer(AlchemicalWizardry.sigilOfTheFastMiner.itemID));
allowedSigils.add(new Integer(AlchemicalWizardry.divinationSigil.itemID));
allowedSigils.add(new Integer(AlchemicalWizardry.sigilOfElementalAffinity.itemID));
allowedSigils.add(new Integer(AlchemicalWizardry.growthSigil.itemID));
allowedSigils.add(new Integer(AlchemicalWizardry.sigilOfHaste.itemID));
allowedSigils.add(new Integer(AlchemicalWizardry.sigilOfWind.itemID));
allowedSigils.add(new Integer(ModItems.waterSigil.itemID));
allowedSigils.add(new Integer(ModItems.lavaSigil.itemID));
allowedSigils.add(new Integer(ModItems.voidSigil.itemID));
allowedSigils.add(new Integer(ModItems.airSigil.itemID));
allowedSigils.add(new Integer(ModItems.sigilOfTheFastMiner.itemID));
allowedSigils.add(new Integer(ModItems.divinationSigil.itemID));
allowedSigils.add(new Integer(ModItems.sigilOfElementalAffinity.itemID));
allowedSigils.add(new Integer(ModItems.growthSigil.itemID));
allowedSigils.add(new Integer(ModItems.sigilOfHaste.itemID));
allowedSigils.add(new Integer(ModItems.sigilOfWind.itemID));
}
public ItemStack getCurrentItem(ItemStack sigilItemStack)