add whitelist / blacklist to importer and fix some code

This commit is contained in:
Raoul Van den Berge
2015-12-19 00:02:44 +01:00
parent 2bae408c59
commit 2f9bc96ee5
15 changed files with 110 additions and 36 deletions

View File

@@ -11,6 +11,16 @@ public enum RedstoneMode {
this.id = id;
}
public RedstoneMode next() {
RedstoneMode next = getById(id + 1);
if (next == null) {
return getById(0);
}
return next;
}
public static RedstoneMode getById(int id) {
for (RedstoneMode control : values()) {
if (control.id == id) {