summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2019-08-22 20:01:40 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2019-08-22 20:01:40 -0400
commit20bef6e26d948698398bd16aeab8c9e6b89110e4 (patch)
tree8a21e17f78b330435f4ce2d4355d72b773230aa7 /src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java
parent26fb28edd1ebb6390f8803fed3876d222cb8fdba (diff)
Format/import cleanup
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java')
-rwxr-xr-xsrc/main/java/darkknight/jewelrycraft/tileentity/TileEntityHandPedestal.java30
1 files changed, 12 insertions, 18 deletions
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)