Record Class AdminSchoolValidator.ValidationReport
java.lang.Object
java.lang.Record
johnsmith.enchantingoverhauled.server.AdminSchoolValidator.ValidationReport
- Enclosing class:
AdminSchoolValidator
-
Constructor Summary
ConstructorsConstructorDescriptionValidationReport(List<net.minecraft.resources.Identifier> aberrantEnchantments, Map<net.minecraft.resources.Identifier, List<net.minecraft.resources.Identifier>> multiSchoolEnchantments) Creates an instance of aValidationReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionList<net.minecraft.resources.Identifier> Returns the value of theaberrantEnchantmentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themultiSchoolEnchantmentsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValidationReport
public ValidationReport(List<net.minecraft.resources.Identifier> aberrantEnchantments, Map<net.minecraft.resources.Identifier, List<net.minecraft.resources.Identifier>> multiSchoolEnchantments) Creates an instance of aValidationReportrecord class.- Parameters:
aberrantEnchantments- the value for theaberrantEnchantmentsrecord componentmultiSchoolEnchantments- the value for themultiSchoolEnchantmentsrecord component
-
-
Method Details
-
hasIssues
public boolean hasIssues() -
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). -
aberrantEnchantments
Returns the value of theaberrantEnchantmentsrecord component.- Returns:
- the value of the
aberrantEnchantmentsrecord component
-
multiSchoolEnchantments
public Map<net.minecraft.resources.Identifier,List<net.minecraft.resources.Identifier>> multiSchoolEnchantments()Returns the value of themultiSchoolEnchantmentsrecord component.- Returns:
- the value of the
multiSchoolEnchantmentsrecord component
-