Class DataValidationHelper

java.lang.Object
petrolpark.mc.library.util.DataValidationHelper

public class DataValidationHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public 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)