Class NBTExtras
java.lang.Object
com.binaris.wizardry.api.content.util.NBTExtras
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleandeepContains(net.minecraft.nbt.Tag toSearch, net.minecraft.nbt.Tag searchFor) static StringgetTagTypeName(int id) static <E,T extends net.minecraft.nbt.Tag>
net.minecraft.nbt.ListTaglistToTag(Collection<E> list, Function<E, T> mapper) static voidstoreTagSafely(net.minecraft.nbt.CompoundTag compound, String key, net.minecraft.nbt.Tag tag) static <E,T extends net.minecraft.nbt.Tag>
Collection<E>
-
Method Details
-
storeTagSafely
public static void storeTagSafely(net.minecraft.nbt.CompoundTag compound, String key, net.minecraft.nbt.Tag tag) -
deepContains
public static boolean deepContains(net.minecraft.nbt.Tag toSearch, net.minecraft.nbt.Tag searchFor) -
getTagTypeName
-
listToTag
public static <E,T extends net.minecraft.nbt.Tag> net.minecraft.nbt.ListTag listToTag(Collection<E> list, Function<E, T> mapper) -
tagToList
public static <E,T extends net.minecraft.nbt.Tag> Collection<E> tagToList(net.minecraft.nbt.ListTag tagList, Function<T, E> function)
-