Class ItemEntrySetup
java.lang.Object
org.rspeer.game.config.item.entry.setup.ItemEntrySetup
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BlowpipeSetup
,DivineRunePouchSetup
,RunePouchSetup
An interface representing the setup that an ItemEntry needs.
For example when adding a blowpipe ItemEntry to a loadout,
we need to know what darts they want in it
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfinal <T> T
final <T> T
abstract boolean
isRequired
(InventoryLoadout loadout)
-
Method Details
-
isRequired
- Returns:
true
if the given inventory loadout requires config for this item. For example, loadout instanceof BackpackLoadout would mean the entry only needs additional setup if it's added to a backpack loadout
-
getPrompts
- Returns:
- A list of
Prompt
to configure this item
-
getConfig
- Returns:
- A config map where the key is a
Prompt
title and the value is a boolean, String, int or Item
-
getConfig
- Returns:
- A config value for the given prompt title
-
getConfig
- Returns:
- A config value for the given prompt
-