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
@ -26,6 +26,10 @@ public class Powered extends Trait implements Toggleable {
|
|||||||
((Creeper) npc.getEntity()).setPowered(powered);
|
((Creeper) npc.getEntity()).setPowered(powered);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isPowered() {
|
||||||
|
return powered;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean toggle() {
|
public boolean toggle() {
|
||||||
|
Loading…
Reference in New Issue
Block a user