Package net.citizensnpcs.trait
Class Powered
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.Powered
- All Implemented Interfaces:
Runnable,Toggleable,Listener
Persists
Creeper powered status.- See Also:
-
Constructor Details
-
Powered
public Powered()
-
-
Method Details
-
onSpawn
public void onSpawn()Description copied from class:TraitCalled when anNPCis spawned.NPC.getEntity()will return null until this is called. This is also called onAttach when the NPC is already spawned. -
isPowered
public boolean isPowered() -
toggle
public boolean toggle()- Specified by:
togglein interfaceToggleable
-
toString
-