Class MobType
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.api.trait.trait.MobType
Represents an NPC's mob type.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Trait
getName, getNPC, getTraitId, isRunImplemented, linkToNPC, onAttach, onCopy, onDespawn, onDespawn, onPreSpawn, onRemove, onRemove, run
-
Constructor Details
-
MobType
public MobType()
-
-
Method Details
-
getType
-
load
-
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. -
save
-
setType
Sets the type of mob that an NPC is.- Parameters:
type- Mob type to set the NPC as
-
toString
-