diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 15:50:07 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2018-05-24 15:50:07 -0400 |
| commit | 4f7ad220df0438b6f3382110577b53f29da46453 (patch) | |
| tree | 07d5e7c812721753cdbe3df7226dad5dc3802c29 /src/main/java/darkknight/jewelrycraft/tileentity/TileEntityCrystal.java | |
| parent | 01c8701b68986ccfa83e902515716838d6829311 (diff) | |
Update of all changes
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;
+ }
}
|
