Uses of Interface
net.minecraftforge.common.util.NonNullSupplier
-
Uses of NonNullSupplier in net.minecraftforge.client
Modifier and TypeFieldDescriptionprivate final NonNullSupplier<RenderType>
ForgeRenderTypes.renderTypeSupplier
ModifierConstructorDescriptionprivate
ForgeRenderTypes
(NonNullSupplier<RenderType> renderTypeSupplier) -
Uses of NonNullSupplier in net.minecraftforge.common.util
Modifier and TypeInterfaceDescriptioninterface
NonNullLazy<T>
Proxy object for a value that is calculated on first access.Modifier and TypeMethodDescriptionstatic <T> NonNullLazy<T>
NonNullLazy.concurrentOf
(NonNullSupplier<T> supplier) Constructs a thread-safe lazy-initialized objectstatic <T> LazyOptional<T>
LazyOptional.of
(NonNullSupplier<T> instanceSupplier) Construct a newLazyOptional
that wraps the givenNonNullSupplier
.static <T> NonNullLazy<T>
NonNullLazy.of
(NonNullSupplier<T> supplier) Constructs a lazy-initialized objectLazyOptional.orElseGet
(NonNullSupplier<? extends T> other) Resolve the contained supplier if non-empty and return the result, otherwise return the result ofother
.LazyOptional.orElseThrow
(NonNullSupplier<? extends X> exceptionSupplier) Resolve the contained supplier if non-empty and return the result, otherwise throw the exception created by the providedNonNullSupplier
.