Package dev.twilite.game.loadout
Class RunePouchLoadoutItem
java.lang.Object
dev.twilite.game.loadout.LoadoutItem
dev.twilite.game.loadout.RunePouchLoadoutItem
Loadout entry for a rune pouch and its desired contents.
The item expands to a preparation loadout during withdrawal. That preparation loadout keeps the pouch itself and withdraws only the rune amounts missing from the configured pouch slots.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDesired rune and amount for a pouch slot.static enumRune pouch variant requirement.Nested classes/interfaces inherited from class dev.twilite.game.loadout.LoadoutItem
LoadoutItem.Builder -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the pouch and its configured contents are present.static RunePouchLoadoutItemdivine()Creates a loadout entry satisfied only by a divine rune pouch.entries()Returns configured pouch entries by slot.intfill()Progresses the pouch toward its configured contents.intfill(int maxActions) Progresses the pouch toward its configured contents using at mostmaxActionsfill actions.booleaninvalid()Returns whether the carried pouch contains unexpected runes.missing()Returns configured rune entries missing from the pouch.Returns a plain inventory loadout that prepares the pouch and missing runes.static RunePouchLoadoutItemregular()Creates a loadout entry satisfied by a regular or divine rune pouch.Requires a rune in any supported pouch slot.rune(RunePouch.Slot slot, Rune rune, int amount) Requires a rune in the supplied pouch slot.rune(RunePouch.Slot slot, Rune rune, int minimum, int amount) Requires a rune in the supplied pouch slot with separate minimum and withdrawal amounts.type()Returns the requested pouch type.Methods inherited from class dev.twilite.game.loadout.LoadoutItem
amount, banked, bankedAmount, bankedIds, bankedItem, bankedPresent, carried, carried, carriedAmount, carriedExcess, carriedIds, carriedItem, carriedItem, carriedMissing, id, ids, minimum, noted, of, slot, stackable, worn, wornAmount, wornPresent
-
Method Details
-
regular
Creates a loadout entry satisfied by a regular or divine rune pouch. -
divine
Creates a loadout entry satisfied only by a divine rune pouch. -
type
Returns the requested pouch type. -
rune
Requires a rune in any supported pouch slot. -
rune
Requires a rune in the supplied pouch slot. -
rune
Requires a rune in the supplied pouch slot with separate minimum and withdrawal amounts. -
entries
Returns configured pouch entries by slot. -
invalid
public boolean invalid()Returns whether the carried pouch contains unexpected runes. -
missing
Returns configured rune entries missing from the pouch. -
fill
public int fill()Progresses the pouch toward its configured contents. -
fill
public int fill(int maxActions) Progresses the pouch toward its configured contents using at mostmaxActionsfill actions. -
carriedPresent
public boolean carriedPresent()Returns whether the pouch and its configured contents are present.- Overrides:
carriedPresentin classLoadoutItem
-
preparationLoadout
Returns a plain inventory loadout that prepares the pouch and missing runes.
-