Klasse ClassRegistry
java.lang.Object
de.delinkedde.mobarenareborn.classes.ClassRegistry
Loads and holds the configured classes from
classes.yml.
On first run the bundled default classes.yml is written to the data folder. Each
class entry defines a role, base health, an inventory (armor, weapon, off-hand, extras) and the
level rewards. Malformed entries are skipped with a warning rather than aborting the load.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung@NotNull Collection<ArenaClass> all()@NotNull Optional<ArenaClass> Resolves a class by name, ignoring case.voidload()Loads (or reloads) all classes fromclasses.yml, writing the default file if absent.names()voidregister(@NotNull ArenaClass arenaClass) Registers (or replaces) a class.
-
Konstruktordetails
-
ClassRegistry
- Parameter:
plugin- the owning plugin
-
-
Methodendetails
-
load
public void load()Loads (or reloads) all classes fromclasses.yml, writing the default file if absent. -
register
Registers (or replaces) a class.- Parameter:
arenaClass- the class to register
-
get
Resolves a class by name, ignoring case.- Parameter:
name- the class identifier- Gibt zurück:
- the class, if present
-
all
- Gibt zurück:
- an unmodifiable view of all classes
-
names
- Gibt zurück:
- an unmodifiable view of all class identifiers
-