Class AdvancementLoader
java.lang.Object
com.github.darksoulq.abyssallib.world.advancement.AdvancementLoader
Utility class handling the parsing, logic assimilation, and registration mapping
of standard JSON format custom advancements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidload()Identifies, loads, and initializes the native advancement file structure.static AdvancementResolves a structural format node directly resolving logic.static AdvancementloadResource(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 booleansave(net.kyori.adventure.key.Key id, Advancement advancement) Serializes mapped logical definitions explicitly returning configuration formats accurately saving files.
-
Constructor Details
-
AdvancementLoader
public AdvancementLoader()
-
-
Method Details
-
load
public static void load()Identifies, loads, and initializes the native advancement file structure. -
load
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
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.
-