mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-22 04:52:17 +00:00
Refactoring
This commit is contained in:
1 parent
fd330233dd
commit
56ccd3188d
76 files changed
+876
-433
No files matched your search
+7
-7
@@ -35,13 +35,13 @@ public class ItemComplexSpellCrystal extends EnergyItems
|
||||
{
|
||||
par3List.add("Crystal of unimaginable power");
|
||||
|
||||
if (!(par1ItemStack.stackTagCompound == null))
|
||||
if (!(par1ItemStack.getTagCompound() == null))
|
||||
{
|
||||
NBTTagCompound itemTag = par1ItemStack.stackTagCompound;
|
||||
NBTTagCompound itemTag = par1ItemStack.getTagCompound();
|
||||
|
||||
if (!par1ItemStack.stackTagCompound.getString("ownerName").equals(""))
|
||||
if (!par1ItemStack.getTagCompound().getString("ownerName").equals(""))
|
||||
{
|
||||
par3List.add("Current owner: " + par1ItemStack.stackTagCompound.getString("ownerName"));
|
||||
par3List.add("Current owner: " + par1ItemStack.getTagCompound().getString("ownerName"));
|
||||
}
|
||||
|
||||
par3List.add("Coords: " + itemTag.getInteger("xCoord") + ", " + itemTag.getInteger("yCoord") + ", " + itemTag.getInteger("zCoord"));
|
||||
@@ -65,7 +65,7 @@ public class ItemComplexSpellCrystal extends EnergyItems
|
||||
|
||||
if (world != null)
|
||||
{
|
||||
NBTTagCompound itemTag = par1ItemStack.stackTagCompound;
|
||||
NBTTagCompound itemTag = par1ItemStack.getTagCompound();
|
||||
TileEntity tileEntity = world.getTileEntity(itemTag.getInteger("xCoord"), itemTag.getInteger("yCoord"), itemTag.getInteger("zCoord"));
|
||||
|
||||
if (tileEntity instanceof TESpellParadigmBlock)
|
||||
@@ -91,11 +91,11 @@ public class ItemComplexSpellCrystal extends EnergyItems
|
||||
|
||||
public int getDimensionID(ItemStack itemStack)
|
||||
{
|
||||
if (itemStack.stackTagCompound == null)
|
||||
if (itemStack.getTagCompound() == null)
|
||||
{
|
||||
itemStack.setTagCompound(new NBTTagCompound());
|
||||
}
|
||||
|
||||
return itemStack.stackTagCompound.getInteger("dimensionId");
|
||||
return itemStack.getTagCompound().getInteger("dimensionId");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user