Package studio.mevera.lotus.api.data
Class DataRegistry
java.lang.Object
studio.mevera.lotus.api.data.DataRegistry
Type-safe heterogeneous container keyed by
Key. Replaces the legacy
String -> Object bag — values are validated against their key's declared type at
insert and at read.
Not thread-safe. Lotus mutators run on the server main thread.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic @NotNull DataRegistryempty()<T> @NotNull Optional<T> <T> T<T> @NotNull DataRegistryvoid<T> Tintsize()
-
Method Details
-
empty
-
put
-
get
-
require
-
getOrNull
-
contains
-
remove
-
size
public int size()
-