Package com.pixelmonmod.api.registry
Class RegistryValue<T>
java.lang.Object
com.pixelmonmod.api.registry.RegistryValue<T>
- All Implemented Interfaces:
Supplier<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRegistryValue(String key) protectedRegistryValue(String key, T value) -
Method Summary
Modifier and TypeMethodDescriptionbooleanget()Deprecated.static <T> Optional<RegistryValue<T>> getKey()getOrThrow(Supplier<X> exceptionSupplier) getValue()inthashCode()voidifInitialized(Consumer<T> consumer) voidboolean<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()
-