public class ViewHelper
extends Object
-
Constructor Summary
Constructors
-
Method Summary
static <T> T
static <T> void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ViewHelper
public ViewHelper()
-
Method Details
-
get
public static <T> T get(ReadView view,
String key,
com.mojang.serialization.Codec<T> codec)
-
getList
public static <T> List<T> getList(ReadView view,
String key,
com.mojang.serialization.Codec<T> entryCodec)
-
putList
public static <T> void putList(WriteView view,
String key,
com.mojang.serialization.Codec<T> entryCodec,
List<T> list)