Record Class ValidationContext.MinBoundsProblem
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.loot.ValidationContext.MinBoundsProblem
- All Implemented Interfaces:
ProblemReporter.Problem
- Enclosing class:
ValidationContext
public static record ValidationContext.MinBoundsProblem(int minBounds)
extends Record
implements ProblemReporter.Problem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theminBoundsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMinBoundsProblem(int minBounds) Creates an instance of aMinBoundsProblemrecord 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.intReturns the value of theminBoundsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface ProblemReporter.Problem
isFatal
-
Field Details
-
minBounds
private final int minBoundsThe field for theminBoundsrecord component.
-
-
Constructor Details
-
MinBoundsProblem
public MinBoundsProblem(int minBounds) Creates an instance of aMinBoundsProblemrecord class.- Parameters:
minBounds- the value for theminBoundsrecord 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 with thecomparemethod from their corresponding wrapper classes. -
minBounds
public int minBounds()Returns the value of theminBoundsrecord component.- Returns:
- the value of the
minBoundsrecord component
-