net.minecraft.loot

public record LootDataType<T>

net.minecraft.world.level.storage.loot.LootDataType
net.minecraft.class_8490
net.minecraft.loot.LootDataType

Field summary

Modifier and TypeField
private final RegistryKey<Registry<T>>
registryKey
comp_2519
registryKey
private final com.mojang.serialization.Codec<T>
codec
comp_2520
codec
private final LootDataType$Validator<T>
validator
comp_2522
validator
public static final LootDataType<LootCondition>
PREDICATE
field_44496
PREDICATES
public static final LootDataType<LootFunction>
MODIFIER
field_44497
ITEM_MODIFIERS
public static final LootDataType<LootTable>
TABLE
field_44498
LOOT_TABLES

Constructor summary

ModifierConstructor
public (RegistryKey<Registry<T>> registryKey, com.mojang.serialization.Codec<T> codec, LootDataType$Validator<T> validator)

Method summary

Modifier and TypeMethod
public void
runValidation(ValidationContext rootContext, ResourceKey<T> key, T value)
method_51209(class_58 arg0, class_5321<T> arg1, T arg2)
validate(LootTableReporter reporter, RegistryKey<T> key, T value)
public static Stream<LootDataType<?>>
values()
method_51215()
stream()
private static <T extends LootContextAware> LootDataType$Validator<T>
createSimpleValidator()
method_51216()
simpleValidator()
private static LootDataType$Validator<LootTable>
createLootTableValidator()
method_51217()
tableValidator()
public RegistryKey<Registry<T>>
registryKey()
comp_2519()
registryKey()
public com.mojang.serialization.Codec<T>
codec()
comp_2520()
codec()
public LootDataType$Validator<T>
validator()
comp_2522()
validator()
private static void
lambda$createLootTableValidator$1(ValidationContext arg0, ResourceKey arg1, LootTable arg2)
method_51208(class_58 arg0, class_5321 arg1, class_52 arg2)
method_51208(LootTableReporter reporter, RegistryKey key, LootTable value)
private static void
lambda$createSimpleValidator$0(ValidationContext arg0, ResourceKey arg1, LootContextUser arg2)
method_51207(class_58 arg0, class_5321 arg1, class_46 arg2)
method_51207(LootTableReporter reporter, RegistryKey key, LootContextAware value)