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 Summary
Constructors -
Method Summary
-
Constructor Details
-
MobType
public MobType()
-
-
Method Details
-
getType
Gets the type of mob that an NPC is.- Returns:
- The mob type
-
load
Description copied from class:Trait
Loads a trait. -
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. -
save
Description copied from class:Trait
Saves a trait. -
setType
Sets the type of mob that an NPC is.- Parameters:
type
- Mob type to set the NPC as
-
toString
-