Klasse Loadout
java.lang.Object
de.delinkedde.mobarenareborn.classes.Loadout
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.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidClears the player and applies this loadout.double
-
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 pointshelmet- the helmet, ornullchestplate- the chestplate, ornullleggings- the leggings, ornullboots- the boots, ornullweapon- the main-hand weapon, ornulloffhand- the off-hand item, ornullextra- additional inventory items
-
-
Methodendetails
-
baseHealth
public double baseHealth()- Gibt zurück:
- the class base health in health points
-
apply
Clears the player and applies this loadout.- Parameter:
player- the player to equip
-