Add isPowered method

This commit is contained in:
fullwall 2019-12-24 00:39:27 +09:00
parent 5bfb3e0fd7
commit ab4060964c

View File

@ -27,6 +27,10 @@ public class Powered extends Trait implements Toggleable {
}
}
public boolean isPowered() {
return powered;
}
@Override
public boolean toggle() {
powered = !powered;