Uses of Interface
net.minecraftforge.common.util.NonNullSupplier
-
Packages that use NonNullSupplier Package Description net.minecraftforge.client net.minecraftforge.common.util -
-
Uses of NonNullSupplier in net.minecraftforge.client
Fields in net.minecraftforge.client declared as NonNullSupplier Modifier and Type Field Description private NonNullSupplier<RenderType>
ForgeRenderTypes. renderTypeSupplier
Constructors in net.minecraftforge.client with parameters of type NonNullSupplier Constructor Description ForgeRenderTypes(NonNullSupplier<RenderType> renderTypeSupplier)
-
Uses of NonNullSupplier in net.minecraftforge.common.util
Subinterfaces of NonNullSupplier in net.minecraftforge.common.util Modifier and Type Interface Description interface
NonNullLazy<T>
Proxy object for a value that is calculated on first access.Fields in net.minecraftforge.common.util declared as NonNullSupplier Modifier and Type Field Description private NonNullSupplier<T>
LazyOptional. supplier
Methods in net.minecraftforge.common.util with parameters of type NonNullSupplier Modifier and Type Method Description static <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 objectT
LazyOptional. orElseGet(NonNullSupplier<? extends T> other)
Resolve the contained supplier if non-empty and return the result, otherwise return the result ofother
.<X extends java.lang.Throwable>
TLazyOptional. 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 NonNullSupplier Constructor Description LazyOptional(NonNullSupplier<T> instanceSupplier)
-