Package dev.twilite.game.loadout
Class Loadouts
java.lang.Object
dev.twilite.game.loadout.Loadouts
Helpers for applying inventory and equipment loadouts.
Methods enqueue at most one game action per call so scripts can let client state update before asking for the next step. Bank-backed methods open the nearest bank when needed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<EquipmentLoadout> Loads a saved equipment loadout by name.static voidwithdraw(InventoryLoadout loadout) Progresses an inventory loadout toward its requested state.static voidwithdraw(InventoryLoadout loadout, int maxActionsPerTick) Progresses an inventory loadout using at mostmaxActionsPerTickbank actions.static voidwithdraw(InventoryLoadout loadout, EquipmentLoadout equipmentLoadout) Progresses an equipment loadout and inventory loadout together.static voidwithdraw(InventoryLoadout loadout, EquipmentLoadout equipmentLoadout, int maxActionsPerTick) Progresses an equipment loadout and inventory loadout together using at mostmaxActionsPerTickbank actions.
-
Constructor Details
-
Loadouts
public Loadouts()
-
-
Method Details
-
withdraw
Progresses an inventory loadout toward its requested state.Foreign inventory items are deposited first, then excess amounts, then missing entries are withdrawn.
-
withdraw
Progresses an equipment loadout and inventory loadout together.Equipment entries are considered first and are added ahead of inventory entries in the temporary withdrawal loadout. Carried equipment is equipped before more bank work is attempted.
-
withdraw
public static void withdraw(InventoryLoadout loadout, EquipmentLoadout equipmentLoadout, int maxActionsPerTick) Progresses an equipment loadout and inventory loadout together using at mostmaxActionsPerTickbank actions. -
withdraw
Progresses an inventory loadout using at mostmaxActionsPerTickbank actions. -
loadSavedEquipmentLoadout
Loads a saved equipment loadout by name.
-