public class WauzBestiarySpecies
extends java.lang.Object
WauzBestiaryEntry
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<WauzBestiaryEntry> |
entries
The bestiary entries belonging to the species.
|
private static java.util.Map<java.lang.String,WauzBestiaryEntry> |
entryMap
A map of bestiary entries, indexed by their full name.
|
private WauzBestiaryCategory |
speciesCategory
The bestiary category of the species.
|
private java.lang.String |
speciesDescription
The description of the species.
|
private static java.util.Map<WauzBestiaryCategory,java.util.List<WauzBestiarySpecies>> |
speciesMap
A map of species lists, indexed by category.
|
private java.lang.String |
speciesName
The name of the species.
|
Constructor and Description |
---|
WauzBestiarySpecies(WauzBestiaryCategory speciesCategory,
java.lang.String speciesName)
Constructs a species including entries, based on the bestiary file in the /WauzCore/BestiaryData/Category folder.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<WauzBestiaryEntry> |
getEntries() |
static WauzBestiaryEntry |
getEntry(java.lang.String entryName) |
static java.util.List<WauzBestiarySpecies> |
getSpecies(WauzBestiaryCategory category) |
WauzBestiaryCategory |
getSpeciesCategory() |
java.lang.String |
getSpeciesDescription() |
java.lang.String |
getSpeciesName() |
static void |
init()
Initializes all species and their entries from the config and fills the internal species map.
|
private static java.util.Map<WauzBestiaryCategory,java.util.List<WauzBestiarySpecies>> speciesMap
private static java.util.Map<java.lang.String,WauzBestiaryEntry> entryMap
private WauzBestiaryCategory speciesCategory
private java.lang.String speciesName
private java.lang.String speciesDescription
java.util.List<WauzBestiaryEntry> entries
public WauzBestiarySpecies(WauzBestiaryCategory speciesCategory, java.lang.String speciesName)
speciesCategory
- The category of the species.speciesName
- The name of the species.public static void init()
public static java.util.List<WauzBestiarySpecies> getSpecies(WauzBestiaryCategory category)
category
- A bestiary category.public static WauzBestiaryEntry getEntry(java.lang.String entryName)
entryName
- A full name of a bestiary entry.public WauzBestiaryCategory getSpeciesCategory()
public java.lang.String getSpeciesName()
public java.lang.String getSpeciesDescription()
public java.util.List<WauzBestiaryEntry> getEntries()