Class ValidationContext
java.lang.Object
net.minecraft.world.level.storage.loot.ValidationContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LootContextParamSet
private final ProblemReporter
private final Optional
<HolderGetter.Provider> private final Set
<ResourceKey<?>> -
Constructor Summary
ModifierConstructorDescriptionValidationContext
(ProblemReporter p_352229_, LootContextParamSet p_352267_) private
ValidationContext
(ProblemReporter p_312319_, LootContextParamSet p_279447_, Optional<HolderGetter.Provider> p_352342_, Set<ResourceKey<?>> p_311760_) ValidationContext
(ProblemReporter p_311875_, LootContextParamSet p_279485_, HolderGetter.Provider p_335890_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
enterElement
(String p_279180_, ResourceKey<?> p_335771_) boolean
hasVisitedElement
(ResourceKey<?> p_335626_) reporter()
void
reportProblem
(String p_79358_) resolver()
setParams
(LootContextParamSet p_79356_) void
validateUser
(LootContextUser p_79354_)
-
Field Details
-
reporter
-
params
-
resolver
-
visitedElements
-
-
Constructor Details
-
ValidationContext
public ValidationContext(ProblemReporter p_311875_, LootContextParamSet p_279485_, HolderGetter.Provider p_335890_) -
ValidationContext
-
ValidationContext
private ValidationContext(ProblemReporter p_312319_, LootContextParamSet p_279447_, Optional<HolderGetter.Provider> p_352342_, Set<ResourceKey<?>> p_311760_)
-
-
Method Details
-
forChild
-
enterElement
-
hasVisitedElement
-
reportProblem
-
validateUser
-
resolver
-
allowsReferences
public boolean allowsReferences() -
setParams
-
reporter
-