diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 16:03:42 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 16:03:42 -0400 |
| commit | 9a4d1e95ea7784f0f98ea2913701a3a3c28aefaa (patch) | |
| tree | b4307f58fe2197d2215707bb3f44cf8952229c6d /src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java | |
| parent | 4f7ad220df0438b6f3382110577b53f29da46453 (diff) | |
Formatting pass
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java')
| -rwxr-xr-x | src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java index c44cd88..f6fb323 100755 --- a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java +++ b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java @@ -57,7 +57,8 @@ public class TileEntityHandPedestal extends TileEntity { super.readFromNBT(tagCompound);
if (tagCompound.hasKey("object", 10))
setHeldItemStack(ItemStack.loadItemStackFromNBT(
- tagCompound.getCompoundTag("object")));
+ tagCompound.getCompoundTag(
+ "object")));
else
removeHeldItemStack();
isHandOpen = tagCompound.getBoolean("isHandOpen");
@@ -71,7 +72,8 @@ public class TileEntityHandPedestal extends TileEntity { super.updateEntity();
updateGrip();
if (isDirty) {
- worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
+ worldObj.markBlockForUpdate(xCoord, yCoord,
+ zCoord);
isDirty = false;
}
}
@@ -94,8 +96,8 @@ 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);
}
/**
@@ -129,7 +131,8 @@ 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)
|
