Refactoring

This commit is contained in:
WayofTime 2015-01-16 10:00:50 -05:00
parent fd330233dd
commit 56ccd3188d
76 changed files with 876 additions and 433 deletions

View file

@ -105,7 +105,7 @@ public class ArmourForge extends Block
return false;
}
if (armourPiece.stackTagCompound == null)
if (armourPiece.getTagCompound() == null)
{
armourPiece.setTagCompound(new NBTTagCompound());
}

View file

@ -153,7 +153,7 @@ public class BlockBelljar extends BlockContainer
ItemStack drop = new ItemStack(this);
NBTTagCompound tag = new NBTTagCompound();
((TEBellJar) tile).writeTankNBT(tag);
drop.stackTagCompound = tag;
drop.setTagCompound(tag);
list.add(drop);
}

View file

@ -70,12 +70,12 @@ public class BlockHomHeart extends BlockContainer
{
if (playerItem.getItem() instanceof BlankSpell)
{
if (playerItem.stackTagCompound == null)
if (playerItem.getTagCompound() == null)
{
playerItem.setTagCompound(new NBTTagCompound());
}
NBTTagCompound itemTag = playerItem.stackTagCompound;
NBTTagCompound itemTag = playerItem.getTagCompound();
itemTag.setInteger("xCoord", x);
itemTag.setInteger("yCoord", y);
itemTag.setInteger("zCoord", z);

View file

@ -58,12 +58,12 @@ public class BlockSpellParadigm extends BlockOrientable
if (stack != null && stack.getItem() instanceof ItemComplexSpellCrystal)
{
if (stack.stackTagCompound == null)
if (stack.getTagCompound() == null)
{
stack.setTagCompound(new NBTTagCompound());
}
NBTTagCompound itemTag = stack.stackTagCompound;
NBTTagCompound itemTag = stack.getTagCompound();
itemTag.setInteger("xCoord", x);
itemTag.setInteger("yCoord", y);
itemTag.setInteger("zCoord", z);

View file

@ -85,12 +85,12 @@ public class BlockTeleposer extends BlockContainer
{
SoulNetworkHandler.checkAndSetItemOwner(playerItem, player);
if (playerItem.stackTagCompound == null)
if (playerItem.getTagCompound() == null)
{
playerItem.setTagCompound(new NBTTagCompound());
}
NBTTagCompound itemTag = playerItem.stackTagCompound;
NBTTagCompound itemTag = playerItem.getTagCompound();
itemTag.setInteger("xCoord", x);
itemTag.setInteger("yCoord", y);
itemTag.setInteger("zCoord", z);