Klasse KeywordApplier

java.lang.Object
de.delinkedde.mobarenareborn.progression.KeywordApplier

public final class KeywordApplier extends Object
Applies a class's cumulative level-reward keywords to a player.

This milestone implements the stat and enchantment keywords:

  • health_boost_<n> - adds n hearts (2 health points each) to max health;
  • damage_boost_<n> - adds n to attack damage;
  • armor_boost_<n> - adds n to armor;
  • speed_boost_<n> - adds a small movement-speed bonus;
  • knockback_resist_<n> - adds knockback resistance;
  • enchant_<type>_<level> - enchants the main-hand item (highest level wins).

The ability_*, effect_* and item_* keywords are reserved for later milestones and are ignored here. The class is a stateless helper.

  • Methodendetails

    • apply

      public static void apply(@NotNull @NotNull Player player, @NotNull @NotNull List<String> keywords)
      Applies all of the given keywords to the player. Call after the base loadout is equipped.
      Parameter:
      player - the player to modify
      keywords - the cumulative reward keywords