Klasse ArenaClass
java.lang.Object
de.delinkedde.mobarenareborn.classes.ArenaClass
A configured class: its role, starting loadout and the level rewards that unlock as it levels.
Level rewards are keyword strings (for example health_boost_1, ability_taunt)
keyed by the level at which they are granted. Rewards are cumulative:
keywordsUpTo(int) returns every keyword granted up to and including a level.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungArenaClass(@NotNull String name, @NotNull Role role, @NotNull Loadout loadout, @NotNull NavigableMap<Integer, List<String>> levelRewards, int maxLevel, @Nullable String ability, @Nullable String abilityKey, @Nullable Material icon, @NotNull List<String> effects, int limit, @NotNull String petName) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung@Nullable Stringability()@Nullable StringintabilityUnlockLevel(@NotNull String abilityId) Returns the level at which the given ability becomes usable.effects()@Nullable Materialicon()keywordsUpTo(int level) Returns every reward keyword granted up to and including the given level.intlimit()@NotNull Loadoutloadout()intmaxLevel()@NotNull Stringname()@NotNull StringpetName()@NotNull Rolerole()
-
Konstruktordetails
-
Methodendetails
-
petName
- Gibt zurück:
- the companion name template (
<player-name>placeholder); empty for none
-
effects
- Gibt zurück:
- the permanent kit potion effects (
nameorname:amplifier)
-
limit
public int limit()- Gibt zurück:
- the per-round player limit for this class;
0means unlimited
-
name
- Gibt zurück:
- the lower-case class identifier
-
role
- Gibt zurück:
- the class role
-
loadout
- Gibt zurück:
- the starting loadout
-
maxLevel
public int maxLevel()- Gibt zurück:
- the level cap
-
ability
- Gibt zurück:
- the active ability id, or
nullif the class has none
-
abilityKey
- Gibt zurück:
- the ability trigger key token, or
null
-
icon
- Gibt zurück:
- the configured menu icon material, or
nullto use the role default
-
keywordsUpTo
Returns every reward keyword granted up to and including the given level.- Parameter:
level- the level to collect rewards for- Gibt zurück:
- the cumulative list of reward keywords, in level order
-
abilityUnlockLevel
Returns the level at which the given ability becomes usable.An ability is gated when a reward keyword
ability_<id>is configured among the class's level rewards; the unlock level is the level at which that keyword first appears. When no such keyword is configured the ability is available from level one, preserving the default behaviour for classes that do not opt into gating.- Parameter:
abilityId- the ability identifier- Gibt zurück:
- the unlock level, or
1when the ability is not gated
-