add redstone controls

This commit is contained in:
Raoul Van den Berge
2015-12-18 15:10:38 +01:00
parent 8bf0f66530
commit 2bae408c59
23 changed files with 376 additions and 98 deletions

View File

@@ -0,0 +1,23 @@
package storagecraft.tile;
public enum RedstoneMode {
IGNORE(0),
HIGH(1),
LOW(2);
public final int id;
RedstoneMode(int id) {
this.id = id;
}
public static RedstoneMode getById(int id) {
for (RedstoneMode control : values()) {
if (control.id == id) {
return control;
}
}
return null;
}
}