Package com.pixelmonmod.api.registry
Class RegistryValue<T>
java.lang.Object
com.pixelmonmod.api.registry.RegistryValue<T>
-
Constructor Summary
ModifierConstructorDescriptionprotected
RegistryValue
(String key) protected
RegistryValue
(String key, T value) -
Method Summary
Modifier and TypeMethodDescriptionboolean
get()
Deprecated.static <T> Optional<RegistryValue<T>>
getKey()
getValue()
int
hashCode()
void
ifInitialized
(Consumer<T> consumer) void
boolean
<U> Optional<U>
static <T> RegistryValue<T>
static <T> RegistryValue<T>
orElse
(RegistryValue<T> other) protected RegistryValue<T>
-
Constructor Details
-
RegistryValue
-
RegistryValue
-
-
Method Details