Interface DataSectionRegistry
public interface DataSectionRegistry
Registry of custom
DataSections. Thread-safe.-
Method Summary
Modifier and TypeMethodDescription@NotNull Collection<DataSection<?>> all()@Nullable DataSection<?> voidregister(@NotNull DataSection<?> section) booleanunregister(@NotNull String id)
-
Method Details
-
register
- Throws:
IllegalArgumentException- if the id is invalid or already registered
-
unregister
- Returns:
- true when a section with that id was removed
-
get
-
all
- Returns:
- snapshot of the registered sections, in registration order
-