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_310867_, LootContextParamSet p_279447_) private
ValidationContext
(ProblemReporter p_345071_, LootContextParamSet p_343958_, Optional<HolderGetter.Provider> p_343446_, Set<ResourceKey<?>> p_344231_) ValidationContext
(ProblemReporter p_312350_, LootContextParamSet p_279485_, HolderGetter.Provider p_331032_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
enterElement
(String p_279180_, ResourceKey<?> p_331211_) boolean
hasVisitedElement
(ResourceKey<?> p_335461_) 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_312350_, LootContextParamSet p_279485_, HolderGetter.Provider p_331032_) -
ValidationContext
-
ValidationContext
private ValidationContext(ProblemReporter p_345071_, LootContextParamSet p_343958_, Optional<HolderGetter.Provider> p_343446_, Set<ResourceKey<?>> p_344231_)
-
-
Method Details
-
forChild
-
enterElement
-
hasVisitedElement
-
reportProblem
-
validateUser
-
resolver
-
allowsReferences
public boolean allowsReferences() -
setParams
-
reporter
-