Class ValidationContext
java.lang.Object
net.minecraft.world.level.storage.loot.ValidationContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Function<ResourceLocation,
LootItemCondition> private String
private final LootContextParamSet
private final Function<ResourceLocation,
LootTable> private final Set<ResourceLocation>
private final Set<ResourceLocation>
-
Constructor Summary
ConstructorDescriptionValidationContext
(com.google.common.collect.Multimap<String, String> p_79341_, Supplier<String> p_79342_, LootContextParamSet p_79343_, Function<ResourceLocation, LootItemCondition> p_79344_, Set<ResourceLocation> p_79345_, Function<ResourceLocation, LootTable> p_79346_, Set<ResourceLocation> p_79347_) ValidationContext
(LootContextParamSet p_79349_, Function<ResourceLocation, LootItemCondition> p_79350_, Function<ResourceLocation, LootTable> p_79351_) -
Method Summary
Modifier and TypeMethodDescriptionenterCondition
(String p_79368_, ResourceLocation p_79369_) enterTable
(String p_79360_, ResourceLocation p_79361_) private String
boolean
hasVisitedCondition
(ResourceLocation p_79371_) boolean
hasVisitedTable
(ResourceLocation p_79363_) void
reportProblem
(String p_79358_) resolveCondition
(ResourceLocation p_79380_) resolveLootTable
(ResourceLocation p_79376_) setParams
(LootContextParamSet p_79356_) void
validateUser
(LootContextUser p_79354_)
-
Field Details
-
problems
-
context
-
params
-
conditionResolver
-
visitedConditions
-
tableResolver
-
visitedTables
-
contextCache
-
-
Constructor Details
-
ValidationContext
public ValidationContext(LootContextParamSet p_79349_, Function<ResourceLocation, LootItemCondition> p_79350_, Function<ResourceLocation, LootTable> p_79351_) -
ValidationContext
public ValidationContext(com.google.common.collect.Multimap<String, String> p_79341_, Supplier<String> p_79342_, LootContextParamSet p_79343_, Function<ResourceLocation, LootItemCondition> p_79344_, Set<ResourceLocation> p_79345_, Function<ResourceLocation, LootTable> p_79346_, Set<ResourceLocation> p_79347_)
-
-
Method Details
-
getContext
-
reportProblem
-
forChild
-
enterTable
-
enterCondition
-
hasVisitedTable
-
hasVisitedCondition
-
getProblems
-
validateUser
-
resolveLootTable
-
resolveCondition
-
setParams
-