Package com.pixelmonmod.api.registry
Class RegistryValue<T>
java.lang.Object
com.pixelmonmod.api.registry.RegistryValue<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RegistryValue
(String key) protected
RegistryValue
(String key, T value) -
Method Summary
Modifier and TypeMethodDescriptionboolean
get()
Deprecated.static <T> Optional
<RegistryValue<T>> getKey()
getOrThrow
(Supplier<X> exceptionSupplier) 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
-
of
-
of
-
get
-
setValue
-
invalidate
-
getKey
-
isInitialized
public boolean isInitialized() -
ifPresent
-
ifInitialized
-
getValue
-
get
Deprecated. -
getValueUnsafe
-
getOrThrow
-
getOrThrow
- Throws:
X
-
orElse
-
orElse
-
map
-
equals
-
hashCode
public int hashCode()
-