Klasse Loadout

java.lang.Object
de.delinkedde.mobarenareborn.classes.Loadout

public final class Loadout extends Object
The starting equipment and base health a class grants when a round begins.

Applying a loadout clears the player's inventory, equips the armor and weapon, grants the extra items, sets the class base health and resets the player to a clean survival state. Level rewards (the keyword boosts) are applied on top by the progression layer.

  • Konstruktordetails

    • Loadout

      public Loadout(double baseHealth, @Nullable @Nullable ItemSpec helmet, @Nullable @Nullable ItemSpec chestplate, @Nullable @Nullable ItemSpec leggings, @Nullable @Nullable ItemSpec boots, @Nullable @Nullable ItemSpec weapon, @Nullable @Nullable ItemSpec offhand, @NotNull @NotNull List<ItemSpec> extra)
      Parameter:
      baseHealth - the class base health in health points
      helmet - the helmet, or null
      chestplate - the chestplate, or null
      leggings - the leggings, or null
      boots - the boots, or null
      weapon - the main-hand weapon, or null
      offhand - the off-hand item, or null
      extra - additional inventory items
  • Methodendetails

    • baseHealth

      public double baseHealth()
      Gibt zurück:
      the class base health in health points
    • apply

      public void apply(@NotNull @NotNull Player player)
      Clears the player and applies this loadout.
      Parameter:
      player - the player to equip