Class YamlEventLoader
java.lang.Object
com.iantapply.orchestra.adapter.yaml.YamlEventLoader
Loads and validates event definitions from Bukkit-compatible YAML files.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
YamlEventLoader
public YamlEventLoader()Creates a stateless YAML event loader.
-
-
Method Details
-
load
Loads one event definition.- Parameters:
path- regular YAML file to load- Returns:
- validated immutable event definition
- Throws:
IOException- when the path is not a readable regular fileIllegalArgumentException- when the definition is invalid
-