Package petrolpark.mc.library.util
Class DataValidationHelper
java.lang.Object
petrolpark.mc.library.util.DataValidationHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final <T extends net.minecraft.world.level.storage.loot.LootContextUser>
voidvalidateHolder(net.minecraft.core.Holder<T> holder, net.minecraft.world.level.storage.loot.ValidationContext context, String childString) static final <T extends net.minecraft.world.level.storage.loot.LootContextUser>
voidvalidateHolderSet(net.minecraft.core.HolderSet<T> holderSet, net.minecraft.world.level.storage.loot.ValidationContext context, String childString) static final <T extends net.minecraft.world.level.storage.loot.LootContextUser>
Function<T, com.mojang.serialization.DataResult<T>> validateParamSet(net.minecraft.world.level.storage.loot.parameters.LootContextParamSet params, String name)
-
Constructor Details
-
DataValidationHelper
public DataValidationHelper()
-
-
Method Details
-
validateHolder
public static final <T extends net.minecraft.world.level.storage.loot.LootContextUser> void validateHolder(net.minecraft.core.Holder<T> holder, net.minecraft.world.level.storage.loot.ValidationContext context, String childString) -
validateHolderSet
public static final <T extends net.minecraft.world.level.storage.loot.LootContextUser> void validateHolderSet(net.minecraft.core.HolderSet<T> holderSet, net.minecraft.world.level.storage.loot.ValidationContext context, String childString) -
validateParamSet
-