From ab4060964c005737fabe73573343633b4184e4d1 Mon Sep 17 00:00:00 2001 From: fullwall Date: Tue, 24 Dec 2019 00:39:27 +0900 Subject: [PATCH] Add isPowered method --- main/src/main/java/net/citizensnpcs/trait/Powered.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/src/main/java/net/citizensnpcs/trait/Powered.java b/main/src/main/java/net/citizensnpcs/trait/Powered.java index a56b7b68a..7d0c8402e 100644 --- a/main/src/main/java/net/citizensnpcs/trait/Powered.java +++ b/main/src/main/java/net/citizensnpcs/trait/Powered.java @@ -26,6 +26,10 @@ public class Powered extends Trait implements Toggleable { ((Creeper) npc.getEntity()).setPowered(powered); } } + + public boolean isPowered() { + return powered; + } @Override public boolean toggle() {