Class NbtHelper
java.lang.Object
io.github.xrickastley.sevenelements.util.NbtHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateErrorConsumer(String message, Object... arguments) static <T> Tget(NbtCompound nbt, String key, com.mojang.serialization.Codec<T> codec) static <T> List<T> getList(NbtCompound nbt, String key, com.mojang.serialization.Codec<T> entryCodec) static <T> voidputList(NbtCompound nbt, String key, com.mojang.serialization.Codec<T> entryCodec, List<T> list)
-
Constructor Details
-
NbtHelper
public NbtHelper()
-
-
Method Details
-
get
-
getList
public static <T> List<T> getList(NbtCompound nbt, String key, com.mojang.serialization.Codec<T> entryCodec) -
putList
public static <T> void putList(NbtCompound nbt, String key, com.mojang.serialization.Codec<T> entryCodec, List<T> list) -
createErrorConsumer
-