Package net.citizensnpcs.trait.versioned
Class EnderDragonTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.EnderDragonTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidenderdragon(CommandContext args, CommandSender sender, NPC npc, EnderDragon.Phase phase, Boolean destroyWalls) getPhase()booleanvoidonSpawn()Called when anNPCis spawned.voidsetDestroyWalls(boolean destroyWalls) voidsetPhase(EnderDragon.Phase phase)
-
Constructor Details
-
EnderDragonTrait
public EnderDragonTrait()
-
-
Method Details
-
getPhase
-
isDestroyWalls
public boolean isDestroyWalls() -
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. -
setDestroyWalls
public void setDestroyWalls(boolean destroyWalls) -
setPhase
-
enderdragon
public static void enderdragon(CommandContext args, CommandSender sender, NPC npc, EnderDragon.Phase phase, Boolean destroyWalls) throws CommandException - Throws:
CommandException
-