Class AdvancementLoader

java.lang.Object
com.github.darksoulq.abyssallib.world.advancement.AdvancementLoader

public class AdvancementLoader extends Object
Utility class handling the parsing, logic assimilation, and registration mapping of standard JSON format custom advancements.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Identifies, loads, and initializes the native advancement file structure.
    load(Path path, net.kyori.adventure.key.Key id)
    Resolves a structural format node directly resolving logic.
    loadResource(org.bukkit.plugin.Plugin plugin, String resourcePath, net.kyori.adventure.key.Key id)
    Maps an internal plugin file node directly into procedural evaluation boundaries structurally securely.
    static boolean
    save(net.kyori.adventure.key.Key id, Advancement advancement)
    Serializes mapped logical definitions explicitly returning configuration formats accurately saving files.

    Methods inherited from class Object

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

    • AdvancementLoader

      public AdvancementLoader()
  • Method Details

    • load

      public static void load()
      Identifies, loads, and initializes the native advancement file structure.
    • load

      public static Advancement load(Path path, net.kyori.adventure.key.Key id)
      Resolves a structural format node directly resolving logic.
      Parameters:
      path - The target file location.
      id - The registered target mapping logic natively evaluated.
      Returns:
      The parsed object boundary instance.
    • loadResource

      public static Advancement loadResource(org.bukkit.plugin.Plugin plugin, String resourcePath, net.kyori.adventure.key.Key id)
      Maps an internal plugin file node directly into procedural evaluation boundaries structurally securely.
      Parameters:
      plugin - The origin plugin context mapped targeting resources natively.
      resourcePath - The internal JAR target structure identifying paths accurately.
      id - The registry configuration mapped key identity limits cleanly.
      Returns:
      The correctly evaluated target model mapping.
    • save

      public static boolean save(net.kyori.adventure.key.Key id, Advancement advancement)
      Serializes mapped logical definitions explicitly returning configuration formats accurately saving files.
      Parameters:
      id - The registry target natively establishing limits.
      advancement - The logic instance targeting explicit mappings precisely.
      Returns:
      Execution confirmation reflecting safe I/O closures natively.