Class ConfigManager

java.lang.Object
net.botwithus.rs3.game.js5.types.configs.ConfigManager

public final class ConfigManager extends Object
ConfigManager is a class used to manage the loading and retrieval of configuration data from the RuneScape filesystem.
  • Field Details

    • GSON

      public static final com.google.gson.Gson GSON
  • Method Details

    • getAchievementType

      public static AchievementType getAchievementType(int id)
      Returns the AchievementType associated with the given id.
      Parameters:
      id - the id of the AchievementType to retrieve
      Returns:
      the AchievementType associated with the given id
    • getFS

      public SqliteFilesystem getFS()
    • getLocationType

      @Nullable public static @Nullable LocationType getLocationType(int locId)
      Returns the LocationType associated with the given location ID.
      Parameters:
      locId - the location ID
      Returns:
      the LocationType associated with the given location ID
    • getItemType

      @Nullable public static @Nullable ItemType getItemType(int itemId)
      Returns the ItemType associated with the given itemId.
      Parameters:
      itemId - the itemId to search for
      Returns:
      the ItemType associated with the given itemId, or null if no ItemType is associated with the given itemId
    • getNpcType

      @Nullable public static @Nullable NpcType getNpcType(int npcId)
      Gets the NpcType associated with the given npcId.
      Parameters:
      npcId - The id of the npc to get the type of.
      Returns:
      The NpcType associated with the given npcId.
    • getVarbitType

      @Nullable public static @Nullable VarbitType getVarbitType(int varbitId)
      Gets the VarbitType for the specified varbit id.
      Parameters:
      varbitId - The varbit id.
      Returns:
      The VarbitType for the specified varbit id.
    • getInventoryType

      @Nullable public static @Nullable InventoryType getInventoryType(int invId)
      Returns the InventoryType associated with the given inventory Id.
      Parameters:
      invId - the inventory ID
      Returns:
      the InventoryType associated with the given inventory Id
    • getStructType

      @Nullable public static @Nullable StructType getStructType(int structId)
      Retrieves the StructType associated with the given structId.
      Parameters:
      structId - The id of the StructType to retrieve.
      Returns:
      The StructType associated with the given structId.
    • getParamType

      @Nullable public static @Nullable ParamType getParamType(int paramId)
      Retrieves the ParamType associated with the given paramId.
      Parameters:
      paramId - The id of the ParamType to retrieve.
      Returns:
      The ParamType associated with the given paramId.
    • getEnumType

      @Nullable @Deprecated public static @Nullable EnumType getEnumType(int enumId)
      Deprecated.
      Returns the EnumType associated with the given enumId.
      Parameters:
      enumId - the id of the EnumType to retrieve
      Returns:
      the EnumType associated with the given enumId
    • getEffectType

      @Nullable public static @Nullable EffectType getEffectType(int effectId)
      Gets the EffectType associated with the given effect ID.
      Parameters:
      effectId - the ID of the effect
      Returns:
      the EffectType associated with the given effect ID
    • getSequenceType

      @Nullable public static @Nullable SequenceType getSequenceType(int animId)
      Returns the SequenceType associated with the given animation ID.
      Parameters:
      animId - the animation ID
      Returns:
      the SequenceType associated with the given animation ID
    • getQuestType

      @Nullable public static @Nullable QuestType getQuestType(int questId)
      Returns the QuestType associated with the given quest ID.
      Parameters:
      questId - the quest ID
      Returns:
      the QuestType associated with the given quest ID
    • getDatabaseType

      @Nullable public static @Nullable DatabaseType getDatabaseType(int rowId)
      Returns the DatabaseType associated with the given row id
      Parameters:
      rowId - the rowId
      Returns:
      the DatabaseType associated with the row id
    • getFilesystem

      public static Filesystem getFilesystem()