summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityDisplayer.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/TileEntityDisplayer.java
parent26fb28edd1ebb6390f8803fed3876d222cb8fdba (diff)
Format/import cleanup
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/tileentity/TileEntityDisplayer.java')
-rwxr-xr-xsrc/main/java/darkknight/jewelrycraft/tileentity/TileEntityDisplayer.java19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityDisplayer.java b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityDisplayer.java
index 72fa7c0..ccbedf3 100755
--- a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityDisplayer.java
+++ b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityDisplayer.java
@@ -9,12 +9,10 @@ import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
public class TileEntityDisplayer extends TileEntity {
- public float ringTranslation1, ringTranslation2,
- ringTranslation3, rotAngle;
- public boolean isDescending1, isDescending2,
- isDescending3, isDirty, hasObject;
- public ItemStack object;
- public int quantity, infoIndex, timer = 0;
+ public float ringTranslation1, ringTranslation2, ringTranslation3, rotAngle;
+ public boolean isDescending1, isDescending2, isDescending3, isDirty, hasObject;
+ public ItemStack object;
+ public int quantity, infoIndex, timer = 0;
/**
*
@@ -82,8 +80,7 @@ public class TileEntityDisplayer extends TileEntity {
public void updateEntity() {
super.updateEntity();
if (isDirty) {
- worldObj.markBlockForUpdate(xCoord, yCoord,
- zCoord);
+ worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
isDirty = false;
}
if (ringTranslation1 >= 0.6)
@@ -128,8 +125,7 @@ public class TileEntityDisplayer extends TileEntity {
public Packet getDescriptionPacket() {
NBTTagCompound nbttagcompound = new NBTTagCompound();
writeToNBT(nbttagcompound);
- return new S35PacketUpdateTileEntity(xCoord, yCoord,
- zCoord, 1, nbttagcompound);
+ return new S35PacketUpdateTileEntity(xCoord, yCoord, zCoord, 1, nbttagcompound);
}
/**
@@ -137,8 +133,7 @@ public class TileEntityDisplayer extends TileEntity {
* @param packet
*/
@Override
- public void onDataPacket(NetworkManager net,
- S35PacketUpdateTileEntity packet) {
+ public void onDataPacket(NetworkManager net, S35PacketUpdateTileEntity packet) {
readFromNBT(packet.func_148857_g());
worldObj.func_147479_m(xCoord, yCoord, zCoord);
}