Class ServicersRegister
java.lang.Object
games.stendhal.server.entity.npc.behaviour.journal.ServicersRegister
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add(String npcName, HealerBehaviour behaviour)
Adds an NPC to the NPCList.void
add(String npcName, OutfitChangerBehaviour behaviour)
void
add(String npcName, RepairerBehaviour behaviour)
static ServicersRegister
get()
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
-