Class ServicersRegister
java.lang.Object
games.stendhal.server.entity.npc.behaviour.journal.ServicersRegister
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(String npcName, HealerBehaviour behaviour) Adds an NPC to the NPCList.voidadd(String npcName, OutfitChangerBehaviour behaviour) voidadd(String npcName, RepairerBehaviour behaviour) static ServicersRegisterget()Singleton access method.
-
Constructor Details
-
ServicersRegister
protected ServicersRegister()
-
-
Method Details
-
get
Singleton access method.- Returns:
- The static instance.
-
add
Adds an NPC to the NPCList. Does nothing if an NPC with the same name already exists. This makes sure that each NPC can be uniquely identified by his/her name.- Parameters:
npcName- The NPC that should be addedbehaviour- The ServicersBehaviour of that NPC
-
add
-
add
-
getHealers
-
getOutfitChangers
-
getRepairers
-