Package net.citizensnpcs.trait.versioned
Class EnderDragonTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.EnderDragonTrait
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
EnderDragonTraitpublic EnderDragonTrait()
 
- 
- 
Method Details- 
getPhase
- 
isDestroyWallspublic boolean isDestroyWalls()
- 
onSpawnpublic 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.
- 
setDestroyWallspublic void setDestroyWalls(boolean destroyWalls) 
- 
setPhase
- 
enderdragonpublic static void enderdragon(CommandContext args, CommandSender sender, NPC npc, EnderDragon.Phase phase, Boolean destroyWalls) throws CommandException - Throws:
- CommandException
 
 
-