From 4f7ad220df0438b6f3382110577b53f29da46453 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 24 May 2018 15:50:07 -0400 Subject: Update of all changes --- .../jewelrycraft/tileentity/TileEntityCrystal.java | 59 +++++++++++----------- 1 file changed, 30 insertions(+), 29 deletions(-) mode change 100644 => 100755 src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java (limited to 'src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java') diff --git a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java old mode 100644 new mode 100755 index c7ca018..46288b4 --- a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java +++ b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java @@ -9,34 +9,35 @@ import net.minecraft.tileentity.TileEntity; /** * @author Sorin */ -public class TileEntityCrystal extends TileEntity -{ - public int shine = 120; - boolean descent = false; - int timer = 0; - - @Override - public void updateEntity() - { - if (ConfigHandler.CRYSTAL_GLOW){ - timer++; - if (timer > 20){ - if (shine < 230 && !descent){ - shine += 2; - if (shine >= 230) descent = true; - }else if (shine > 100 && descent){ - shine -= 2; - if (shine <= 100) descent = false; - } - this.worldObj.markBlockRangeForRenderUpdate(xCoord, yCoord, zCoord, xCoord, yCoord, zCoord); - timer = 0; - } - } - } - - public boolean canUpdate() - { - return ConfigHandler.CRYSTAL_GLOW; - } +public class TileEntityCrystal extends TileEntity { + public int shine = 120; + boolean descent = false; + int timer = 0; + + @Override + public void updateEntity() { + if (ConfigHandler.CRYSTAL_GLOW) { + timer++; + if (timer > 20) { + if (shine < 230 && !descent) { + shine += 2; + if (shine >= 230) + descent = true; + } else if (shine > 100 && descent) { + shine -= 2; + if (shine <= 100) + descent = false; + } + this.worldObj.markBlockRangeForRenderUpdate(xCoord, yCoord, + zCoord, xCoord, yCoord, zCoord); + timer = 0; + } + } + } + + @Override + public boolean canUpdate() { + return ConfigHandler.CRYSTAL_GLOW; + } } -- cgit v1.2.3