Package dev.latvian.mods.klib.util
Class Lazy<T>
java.lang.Object
dev.latvian.mods.klib.util.Lazy<T>
- All Implemented Interfaces:
Supplier<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoidforget()voidget()identityMap(Consumer<Map<K, V>> supplier) booleanisCached()<A> Lazy<A> static <T> Lazy<T> static <T> Lazy<T> static <T> Lazy<T> serviceLoader(Class<T> type) static <B,V> net.minecraft.network.codec.StreamCodec <B, V> streamCodec(Supplier<net.minecraft.network.codec.StreamCodec<B, V>> supplier)
-
Method Details
-
of
-
of
-
serviceLoader
-
map
-
identityMap
-
streamCodec
public static <B,V> net.minecraft.network.codec.StreamCodec<B,V> streamCodec(Supplier<net.minecraft.network.codec.StreamCodec<B, V>> supplier) -
isCached
public boolean isCached() -
get
-
forget
public void forget() -
forget
-
map
-