Package net.citizensnpcs.trait
Class DisguiseTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.DisguiseTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisguiseAsType(EntityType type) voidCalled just before the attachedNPCis despawned.voidonSpawn()Called when anNPCis spawned.Methods inherited from class net.citizensnpcs.api.trait.Trait
getName, getNPC, getTraitId, isRunImplemented, linkToNPC, load, onAttach, onCopy, onDespawn, onPreSpawn, onRemove, onRemove, run, save
-
Constructor Details
-
DisguiseTrait
public DisguiseTrait()
-
-
Method Details
-
disguiseAsType
-
getCosmeticEntity
-
getDisguiseType
-
onDespawn
public void onDespawn()Description copied from class:TraitCalled just before the attachedNPCis despawned.NPC.getEntity()will be non-null. -
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.
-