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 thenotProvided
record component. -
Constructor Summary
ConstructorsConstructorDescriptionParametersNotProvidedProblem
(Set<ContextKey<?>> notProvided) Creates an instance of aParametersNotProvidedProblem
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Set
<ContextKey<?>> Returns the value of thenotProvided
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
notProvided
The field for thenotProvided
record component.
-
-
Constructor Details
-
ParametersNotProvidedProblem
Creates an instance of aParametersNotProvidedProblem
record class.- Parameters:
notProvided
- the value for thenotProvided
record component
-
-
Method Details
-
description
- Specified by:
description
in interfaceProblemReporter.Problem
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 thenotProvided
record component.- Returns:
- the value of the
notProvided
record component
-