Uses of Interface
net.minecraftforge.common.util.NonNullConsumer
-
Packages that use NonNullConsumer Package Description net.minecraftforge.common.util -
-
Uses of NonNullConsumer in net.minecraftforge.common.util
Fields in net.minecraftforge.common.util with type parameters of type NonNullConsumer Modifier and Type Field Description private java.util.Set<NonNullConsumer<LazyOptional<T>>>
LazyOptional. listeners
Methods in net.minecraftforge.common.util with parameters of type NonNullConsumer Modifier and Type Method Description void
LazyOptional. addListener(NonNullConsumer<LazyOptional<T>> listener)
Register alistener
that will be called when thisLazyOptional
becomes invalid (viaLazyOptional.invalidate()
).void
LazyOptional. ifPresent(NonNullConsumer<? super T> consumer)
If non-empty, invoke the specifiedNonNullConsumer
with the object, otherwise do nothing.
-