Interface ValidationContext
@NonExtendable
public interface ValidationContext
Handed to a
Validator.-
Method Summary
Modifier and TypeMethodDescriptionowner(@NotNull RegistryType<T> type, @NotNull net.kyori.adventure.key.Key id) @NotNull RegistryAccessThe registries being validated (staged content at startup, the new snapshot on reload).voidreport(@NotNull Diagnostic diagnostic) Reports a finding.
-
Method Details
-
registries
The registries being validated (staged content at startup, the new snapshot on reload). -
report
-
owner
@NotNull default <T extends net.kyori.adventure.key.Keyed> @NotNull Optional<AddonId> owner(@NotNull @NotNull RegistryType<T> type, @NotNull @NotNull net.kyori.adventure.key.Key id) - Returns:
- the owner of an entry, for attribution
-