mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 05:05:20 +01:00
Add isPowered method
This commit is contained in:
parent
5bfb3e0fd7
commit
ab4060964c
@ -27,6 +27,10 @@ public class Powered extends Trait implements Toggleable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isPowered() {
|
||||||
|
return powered;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean toggle() {
|
public boolean toggle() {
|
||||||
powered = !powered;
|
powered = !powered;
|
||||||
|
Loading…
Reference in New Issue
Block a user