Interface ReloadContext<T extends net.kyori.adventure.key.Keyed>
@NonExtendable
public interface ReloadContext<T extends net.kyori.adventure.key.Keyed>
Handed to a
ReloadableProvider while a snapshot is being built.-
Method Summary
Modifier and TypeMethodDescription@NotNull AddonIdaddon()<V extends T>
Vregister(V value) @NotNull RegistryAccessStatic registries (frozen) and the reloadable registries' current snapshots.voidreport(@NotNull Diagnostic diagnostic) Adds a finding to the reload report.
-
Method Details
-
addon
-
registries
Static registries (frozen) and the reloadable registries' current snapshots. -
register
- Throws:
RegistrationException- if the key is already used in this snapshot
-
report
Adds a finding to the reload report. Errors reject the whole reload (ยง7.3); use warnings for entries that are skipped while the rest loads.
-