Package net.citizensnpcs.api.trait.trait
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 SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
MobTypepublic MobType()
 
- 
- 
Method Details- 
getTypeGets the type of mob that an NPC is.- Returns:
- The mob type
 
- 
loadDescription copied from class:TraitLoads a trait.
- 
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.
- 
saveDescription copied from class:TraitSaves a trait.
- 
setTypeSets the type of mob that an NPC is.- Parameters:
- type- Mob type to set the NPC as
 
- 
toString
 
-