Package dev.twilite.game.loadout
Class LoadoutItem.Builder
java.lang.Object
dev.twilite.game.loadout.LoadoutItem.Builder
- Enclosing class:
LoadoutItem
Builder for
LoadoutItem.-
Method Summary
Modifier and TypeMethodDescriptionamount(int amount) Sets both the minimum amount and withdrawal amount.amount(int minimum, int amount) Sets the validation minimum and withdrawal amount independently.build()Builds the loadout item.ids(int... ids) Sets accepted item ids.noted()Marks the item as noted for withdrawal and stack-size counting.slot(EquipmentSlot slot) Assigns the equipment slot for equipment loadouts.Marks the item as stackable for amount counting.
-
Method Details
-
ids
Sets accepted item ids. The first id is preferred for withdrawal. -
amount
Sets both the minimum amount and withdrawal amount. -
amount
Sets the validation minimum and withdrawal amount independently. -
stackable
Marks the item as stackable for amount counting. -
noted
Marks the item as noted for withdrawal and stack-size counting. -
slot
Assigns the equipment slot for equipment loadouts. -
build
Builds the loadout item.
-