diff options
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java')
| -rwxr-xr-x[-rw-r--r--] | src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java | 59 |
1 files changed, 30 insertions, 29 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java b/src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java index c7ca018..46288b4 100644..100755 --- 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;
+ }
}
|
