Package net.citizensnpcs.trait
Class Powered
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.Powered
Persists
Creeper
powered status.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
onSpawn()
Called when anNPC
is spawned.void
setPowered
(boolean value)
-
Constructor Details
-
Powered
public Powered()
-
-
Method Details
-
isPowered
public boolean isPowered() -
onSpawn
public void onSpawn()Description copied from class:Trait
Called when anNPC
is spawned.NPC.getEntity()
will return null until this is called. This is also called onAttach when the NPC is already spawned. -
setPowered
public void setPowered(boolean value)
-