public class NPCRegistryVillagers
extends java.lang.Object
Constructor and Description |
---|
NPCRegistryVillagers() |
Modifier and Type | Method and Description |
---|---|
GeneralNPCData |
getData(java.lang.String id)
Gets NPC data by ID.
|
GeneralNPCData |
getNext(java.lang.String index)
Gets the next NPC in the list from a current one.
|
GeneralNPCData |
getRandom()
Gets a random chatting NPC type.
|
java.lang.String[] |
getTranslatedChat(java.lang.String langCode,
java.lang.String id,
int index)
Gets a specific translated set of dialogue for a specific type of chatting NPC.
|
GeneralNPCData |
getTranslatedData(java.lang.String langCode,
java.lang.String id)
Retrieves chatting NPC data for a specific chatting NPC type.
|
java.lang.String |
getTranslatedName(java.lang.String langCode,
java.lang.String id,
int index)
Gets a specific translated name for a specific type of chatting NPC.
|
public GeneralNPCData getNext(java.lang.String index)
index
- The index of the currently selected NPC.public GeneralNPCData getData(java.lang.String id)
id
- The ID of the NPC data to get.public GeneralNPCData getRandom()
public GeneralNPCData getTranslatedData(java.lang.String langCode, java.lang.String id)
langCode
- The lang code to translate strings with.id
- The type of chatting NPC to get data for.public java.lang.String getTranslatedName(java.lang.String langCode, java.lang.String id, int index)
langCode
- The lang code to translate the name with.id
- The type of chatting NPC to get a name for.index
- The index of the name to get.public java.lang.String[] getTranslatedChat(java.lang.String langCode, java.lang.String id, int index)
langCode
- The lang code to translate the dialogue with.id
- The type of chatting NPC to get dialogue for.index
- The index of the set of dialogue to get.