Record Class ValidationContext.RecursiveReferenceProblem
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.loot.ValidationContext.RecursiveReferenceProblem
- All Implemented Interfaces:
ProblemReporter.Problem
- Enclosing class:
ValidationContext
public static record ValidationContext.RecursiveReferenceProblem(ResourceKey<?> referenced)
extends Record
implements ProblemReporter.Problem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ResourceKey<?> The field for thereferencedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRecursiveReferenceProblem(ResourceKey<?> referenced) Creates an instance of aRecursiveReferenceProblemrecord 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.ResourceKey<?> Returns the value of thereferencedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
referenced
The field for thereferencedrecord component.
-
-
Constructor Details
-
RecursiveReferenceProblem
Creates an instance of aRecursiveReferenceProblemrecord class.- Parameters:
referenced- the value for thereferencedrecord 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). -
referenced
Returns the value of thereferencedrecord component.- Returns:
- the value of the
referencedrecord component
-