Refactoring
This commit is contained in:
parent
fd330233dd
commit
56ccd3188d
76 changed files with 876 additions and 433 deletions
|
@ -105,7 +105,7 @@ public class ArmourForge extends Block
|
|||
return false;
|
||||
}
|
||||
|
||||
if (armourPiece.stackTagCompound == null)
|
||||
if (armourPiece.getTagCompound() == null)
|
||||
{
|
||||
armourPiece.setTagCompound(new NBTTagCompound());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue