Class QuestDefinitions


  • public class QuestDefinitions
    extends java.lang.Object
    • 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 cache
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QuestDefinitions

        public QuestDefinitions()
    • 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: