Added setters to applicable MaterialData classes.

This commit is contained in:
sunkid
2011-06-16 15:45:50 -07:00
committed by EvilSeph
parent aec82a1fc9
commit 77a71670b4
17 changed files with 139 additions and 20 deletions

View File

@@ -29,4 +29,8 @@ public class DetectorRail extends ExtendedRails implements PressureSensor {
public boolean isPressed() {
return (getData() & 0x8) == 0x8;
}
public void setPressed(boolean isPressed) {
setData((byte) (isPressed ? (getData() | 0x8) : (getData() & ~0x8)));
}
}