mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Let modules declare pack resource kinds and validators: ResourceKind, PackResources.ids, @ResourceRef, the validation API and folders the host reserves
This commit is contained in:
1 parent
09afee8ae3
commit
ef4b640867
37 files changed
+990
-128
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package com.volmit.host;
|
||||
|
||||
import com.volmit.validation.Validator;
|
||||
import java.util.Objects;
|
||||
|
||||
/** A validator and the module that registered it, which the host names when the validator fails. */
|
||||
public record ValidatorRegistration(Validator validator, DiscoveredModule module) {
|
||||
public ValidatorRegistration {
|
||||
Objects.requireNonNull(validator, "validator");
|
||||
Objects.requireNonNull(module, "module");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user