Package net.citizensnpcs.trait.versioned
Class EnderDragonTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.EnderDragonTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
enderdragon
(CommandContext args, CommandSender sender, NPC npc, EnderDragon.Phase phase, Boolean destroyWalls) getPhase()
boolean
void
onSpawn()
Called when anNPC
is spawned.void
setDestroyWalls
(boolean destroyWalls) void
setPhase
(EnderDragon.Phase phase)
-
Constructor Details
-
EnderDragonTrait
public EnderDragonTrait()
-
-
Method Details
-
getPhase
-
isDestroyWalls
public boolean isDestroyWalls() -
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. -
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
-