Class EventDefinitionDirectory

java.lang.Object
com.iantapply.orchestra.platform.paper.EventDefinitionDirectory

public final class EventDefinitionDirectory extends Object
Installs bundled examples and validates atomically reloadable event YAML files.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EventDefinitionDirectory(org.bukkit.plugin.java.JavaPlugin plugin)
    Creates a definition directory owned by a Paper plugin.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    loadInto(com.iantapply.orchestra.port.DefinitionRepository repository)
    Loads all valid startup definitions and reports every invalid file.
    com.iantapply.orchestra.administration.DefinitionValidationReport
    Validates every YAML file without changing runtime state.

    Methods inherited from class Object

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

    • EventDefinitionDirectory

      public EventDefinitionDirectory(org.bukkit.plugin.java.JavaPlugin plugin)
      Creates a definition directory owned by a Paper plugin.
      Parameters:
      plugin - owning plugin
  • Method Details

    • loadInto

      public int loadInto(com.iantapply.orchestra.port.DefinitionRepository repository)
      Loads all valid startup definitions and reports every invalid file.
      Parameters:
      repository - destination repository
      Returns:
      number of loaded definitions
    • validate

      public com.iantapply.orchestra.administration.DefinitionValidationReport validate()
      Validates every YAML file without changing runtime state.
      Returns:
      immutable validation report