Uses of Interface
net.minecraftforge.common.util.NonNullSupplier
Packages that use NonNullSupplier
-
Uses of NonNullSupplier in net.minecraftforge.client
Fields in net.minecraftforge.client declared as NonNullSupplierModifier and TypeFieldDescriptionprivate final NonNullSupplier<RenderType>
ForgeRenderTypes.renderTypeSupplier
Constructors in net.minecraftforge.client with parameters of type NonNullSupplierModifierConstructorDescriptionprivate
ForgeRenderTypes
(NonNullSupplier<RenderType> renderTypeSupplier) -
Uses of NonNullSupplier in net.minecraftforge.common.util
Subinterfaces of NonNullSupplier in net.minecraftforge.common.utilModifier and TypeInterfaceDescriptioninterface
NonNullLazy<T>
Proxy object for a value that is calculated on first access.Fields in net.minecraftforge.common.util declared as NonNullSupplierMethods in net.minecraftforge.common.util with parameters of type NonNullSupplierModifier and TypeMethodDescriptionstatic <T> NonNullLazy<T>
NonNullLazy.concurrentOf
(@NotNull NonNullSupplier<T> supplier) Constructs a thread-safe lazy-initialized objectstatic <T> LazyOptional<T>
LazyOptional.of
(@Nullable NonNullSupplier<T> instanceSupplier) Construct a newLazyOptional
that wraps the givenNonNullSupplier
.static <T> NonNullLazy<T>
NonNullLazy.of
(@NotNull 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
.Constructors in net.minecraftforge.common.util with parameters of type NonNullSupplierModifierConstructorDescriptionprivate
LazyOptional
(@Nullable NonNullSupplier<T> instanceSupplier)