public class Powered extends Trait implements Toggleable
Creeper
powered status.Creeper.setPowered(boolean)
Constructor and Description |
---|
Powered() |
Modifier and Type | Method and Description |
---|---|
boolean |
isPowered() |
void |
onSpawn()
Called when an
NPC is spawned. |
boolean |
toggle() |
String |
toString() |
public void onSpawn()
Trait
NPC
is spawned. NPC.getEntity()
will return null until this is called. This is
also called onAttach when the NPC is already spawned.public boolean isPowered()
public boolean toggle()
toggle
in interface Toggleable
Copyright © 2021. All rights reserved.