Record Class ValidationContext.ParametersNotProvidedProblem
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.loot.ValidationContext.ParametersNotProvidedProblem
- All Implemented Interfaces:
ProblemReporter.Problem
- Enclosing class:
ValidationContext
public static record ValidationContext.ParametersNotProvidedProblem(Set<ContextKey<?>> notProvided)
extends Record
implements ProblemReporter.Problem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<ContextKey<?>> The field for thenotProvidedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionParametersNotProvidedProblem(Set<ContextKey<?>> notProvided) Creates an instance of aParametersNotProvidedProblemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Set<ContextKey<?>> Returns the value of thenotProvidedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
notProvided
The field for thenotProvidedrecord component.
-
-
Constructor Details
-
ParametersNotProvidedProblem
Creates an instance of aParametersNotProvidedProblemrecord class.- Parameters:
notProvided- the value for thenotProvidedrecord component
-
-
Method Details
-
description
- Specified by:
descriptionin interfaceProblemReporter.Problem
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
notProvided
Returns the value of thenotProvidedrecord component.- Returns:
- the value of the
notProvidedrecord component
-