Class NBTHelper
java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.NBTHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
getOrDefault
(net.minecraft.nbt.CompoundTag nbt, String key, T defaultValue, BiFunction<net.minecraft.nbt.CompoundTag, String, T> function)
-
Constructor Details
-
NBTHelper
public NBTHelper()
-
-
Method Details
-
getOrDefault
public static <T> T getOrDefault(net.minecraft.nbt.CompoundTag nbt, String key, T defaultValue, BiFunction<net.minecraft.nbt.CompoundTag, String, T> function)
-