aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/tileentities/render
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/render')
-rw-r--r--src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java b/src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java
index dfbb771785..49ef60c71c 100644
--- a/src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java
+++ b/src/main/java/gregtech/common/tileentities/render/TileEntityLaser.java
@@ -32,6 +32,7 @@ public class TileEntityLaser extends TileEntity {
compound.setDouble("rotAxisY", rotAxisY);
compound.setDouble("rotAxisZ", rotAxisZ);
compound.setDouble("rotationAngle", rotationAngle);
+ compound.setBoolean("realism", realism);
}
@Override
@@ -45,6 +46,7 @@ public class TileEntityLaser extends TileEntity {
rotAxisY = compound.getDouble("rotAxisY");
rotAxisZ = compound.getDouble("rotAxisZ");
rotationAngle = compound.getDouble("rotationAngle");
+ realism = compound.getBoolean("realism");
}
public void setColors(float red, float green, float blue) {
@@ -105,6 +107,11 @@ public class TileEntityLaser extends TileEntity {
worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}
+ public void toggleRealism() {
+ realism = !realism;
+ worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
+ }
+
public Boolean getShouldRender() {
return shouldRender;
}