Class QuestDefinitions
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.QuestDefinitions
-
public class QuestDefinitions extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description QuestDefinitions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QuestDefinition
load(int questId)
Loads the QuestDefinition from the cache using the ID of the Quest.static java.util.List<QuestDefinition>
loadAll()
static java.util.List<QuestDefinition>
loadAll(java.util.function.Predicate<QuestDefinition> filter)
Returns all QuestDefinitions that can be read from the cachestatic QuestDefinition
loadByCacheId(int rowId)
Loads the QuestDefinition from the cache using the ID of the dbrow that defines the quest, not to be confused with the Quest ID.
-
-
-
Method Detail
-
load
public static QuestDefinition load(int questId)
Loads the QuestDefinition from the cache using the ID of the Quest.- Parameters:
questId
- ID of the quest.- Returns:
- a QuestDefinition object when successfully read from the cache, otherwise null
- See Also:
Quest.OSRS.getId()
-
loadByCacheId
public static QuestDefinition loadByCacheId(int rowId)
Loads the QuestDefinition from the cache using the ID of the dbrow that defines the quest, not to be confused with the Quest ID.- Parameters:
rowId
- ID of the dbrow.- Returns:
- a QuestDefinition object when successfully read from the cache, otherwise null
-
loadAll
public static java.util.List<QuestDefinition> loadAll(java.util.function.Predicate<QuestDefinition> filter)
Returns all QuestDefinitions that can be read from the cache- Parameters:
filter
-- Returns:
-
loadAll
public static java.util.List<QuestDefinition> loadAll()
-
-