public class NPCRegistryTrainers
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static BaseTrainer |
Steve
The Steve NPC Trainer type.
|
Constructor and Description |
---|
NPCRegistryTrainers() |
Modifier and Type | Method and Description |
---|---|
BaseTrainer |
get(java.lang.String trainerName)
Gets an NPC Trainer type from its name.
|
BaseTrainer |
getById(int id)
Gets an NPC Trainer type from its internal ID.
|
static BaseTrainer |
getByName(java.lang.String name)
Gets an NPC Trainer type from its name descriptor.
|
BaseTrainer |
getRandomBase()
Gets a random NPC Trainer type.
|
BaseTrainer |
getRandomBaseWithData()
Gets a random NPC Trainer type from the types that have NPC Trainer data
associated with them.
|
TrainerData |
getRandomData(BaseTrainer trainer)
Randomly selects a group of NPC Trainer data.
|
TrainerData |
getRandomData(java.lang.String name)
Randomly selects a group of NPC Trainer data.
|
TrainerData |
getTranslatedData(java.lang.String langCode,
BaseTrainer baseTrainer,
java.lang.String id)
Retrieves a specific NPC Trainer type's data.
|
java.lang.String |
getTranslatedRandomName(java.lang.String langCode,
BaseTrainer baseTrainer,
java.lang.String id)
Gets a random name for a specific NPC Trainer type.
|
java.util.ArrayList<BaseTrainer> |
getTypes()
Gets all NPC Trainer data.
|
boolean |
has(java.lang.String trainerName)
Checks if there is a certain NPC Trainer type.
|
public static BaseTrainer Steve
public boolean has(java.lang.String trainerName)
trainerName
- The name of the NPC Trainer type to find.public BaseTrainer get(java.lang.String trainerName)
trainerName
- The name of the NPC Trainer type to find.public BaseTrainer getById(int id)
id
- The ID of the NPC Trainer type.public BaseTrainer getRandomBase()
public TrainerData getRandomData(BaseTrainer trainer)
trainer
- The base trainer type to get data for.public TrainerData getRandomData(java.lang.String name)
name
- The name of the NPC Trainer to get data for.public BaseTrainer getRandomBaseWithData()
public static BaseTrainer getByName(java.lang.String name)
name
- The name of the base Trainer type.public TrainerData getTranslatedData(java.lang.String langCode, BaseTrainer baseTrainer, java.lang.String id)
langCode
- The lang code to translate strings with.baseTrainer
- The Trainer type to get data from.id
- The ID of the Trainer type.public java.lang.String getTranslatedRandomName(java.lang.String langCode, BaseTrainer baseTrainer, java.lang.String id)
langCode
- The lang code to translate the name with.baseTrainer
- The Trainer type to get a name for.id
- The ID of the Trainer type.public java.util.ArrayList<BaseTrainer> getTypes()