From 20bef6e26d948698398bd16aeab8c9e6b89110e4 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 22 Aug 2019 20:01:40 -0400 Subject: Format/import cleanup --- .../tileentity/TileEntityHandPedestal.java | 30 +++++++++------------- 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java') diff --git a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java index f6fb323..69841b2 100755 --- a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java +++ b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java @@ -12,16 +12,16 @@ import net.minecraft.tileentity.TileEntity; * @author Paul Fulham (pau101) */ public class TileEntityHandPedestal extends TileEntity { - protected boolean isDirty; - protected ItemStack heldItemStack; + protected boolean isDirty; + protected ItemStack heldItemStack; /** * When the hand is open the grip is 0 and is 20 when closed. */ - private float grip; - private float prevGrip; - private float gripMax; - private float gripScale; - private boolean isHandOpen; + private float grip; + private float prevGrip; + private float gripMax; + private float gripScale; + private boolean isHandOpen; /** * @@ -56,9 +56,7 @@ public class TileEntityHandPedestal extends TileEntity { public void readFromNBT(NBTTagCompound tagCompound) { super.readFromNBT(tagCompound); if (tagCompound.hasKey("object", 10)) - setHeldItemStack(ItemStack.loadItemStackFromNBT( - tagCompound.getCompoundTag( - "object"))); + setHeldItemStack(ItemStack.loadItemStackFromNBT(tagCompound.getCompoundTag("object"))); else removeHeldItemStack(); isHandOpen = tagCompound.getBoolean("isHandOpen"); @@ -72,8 +70,7 @@ public class TileEntityHandPedestal extends TileEntity { super.updateEntity(); updateGrip(); if (isDirty) { - worldObj.markBlockForUpdate(xCoord, yCoord, - zCoord); + worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); isDirty = false; } } @@ -96,8 +93,7 @@ public class TileEntityHandPedestal extends TileEntity { public Packet getDescriptionPacket() { NBTTagCompound nbttagcompound = new NBTTagCompound(); writeToNBT(nbttagcompound); - return new S35PacketUpdateTileEntity(xCoord, yCoord, - zCoord, 0, nbttagcompound); + return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 0, nbttagcompound); } /** @@ -105,8 +101,7 @@ public class TileEntityHandPedestal extends TileEntity { * @param packet */ @Override - public void onDataPacket(NetworkManager networkManager, - S35PacketUpdateTileEntity packet) { + public void onDataPacket(NetworkManager networkManager, S35PacketUpdateTileEntity packet) { readFromNBT(packet.func_148857_g()); worldObj.func_147479_m(xCoord, yCoord, zCoord); } @@ -131,8 +126,7 @@ public class TileEntityHandPedestal extends TileEntity { * @param heldItemStack */ public void setHeldItemStack(ItemStack heldItemStack) { - if (heldItemStack != null - && heldItemStack.getItem() != null) { + if (heldItemStack != null && heldItemStack.getItem() != null) { heldItemStack.stackSize = 1; this.heldItemStack = heldItemStack; if (heldItemStack.getItem() instanceof ItemBlock) -- cgit v1.2.3