Record Class ContentReport
java.lang.Object
java.lang.Record
de.eldoria.schematicsanitizer.sanitizer.report.subreports.ContentReport
- Record Components:
blocks- amount of blocks including blacklistednonAirBlocks- amount of non-air blocks including blacklistedtotalCreatures- amount ofCreatures including blacklistedtotalNonCreatures- amount of nonCreatures including blacklistedcreatures- amount ofCreaturesnonCreatures- amount of nonCreatures
public record ContentReport(int blocks, int nonAirBlocks, int totalCreatures, int totalNonCreatures, int creatures, int nonCreatures)
extends Record
Report about the content of the schematic
-
Constructor Summary
ConstructorsConstructorDescriptionContentReport(int blocks, int nonAirBlocks, int totalCreatures, int totalNonCreatures, int creatures, int nonCreatures) Creates an instance of aContentReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintblocks()Returns the value of theblocksrecord component.intReturns the value of thecreaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thenonAirBlocksrecord component.intReturns the value of thenonCreaturesrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCreaturesrecord component.intReturns the value of thetotalNonCreaturesrecord component.
-
Constructor Details
-
ContentReport
public ContentReport(int blocks, int nonAirBlocks, int totalCreatures, int totalNonCreatures, int creatures, int nonCreatures) Creates an instance of aContentReportrecord class.- Parameters:
blocks- the value for theblocksrecord componentnonAirBlocks- the value for thenonAirBlocksrecord componenttotalCreatures- the value for thetotalCreaturesrecord componenttotalNonCreatures- the value for thetotalNonCreaturesrecord componentcreatures- the value for thecreaturesrecord componentnonCreatures- the value for thenonCreaturesrecord component
-
-
Method Details
-
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 with '=='. -
blocks
public int blocks()Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
nonAirBlocks
public int nonAirBlocks()Returns the value of thenonAirBlocksrecord component.- Returns:
- the value of the
nonAirBlocksrecord component
-
totalCreatures
public int totalCreatures()Returns the value of thetotalCreaturesrecord component.- Returns:
- the value of the
totalCreaturesrecord component
-
totalNonCreatures
public int totalNonCreatures()Returns the value of thetotalNonCreaturesrecord component.- Returns:
- the value of the
totalNonCreaturesrecord component
-
creatures
public int creatures()Returns the value of thecreaturesrecord component.- Returns:
- the value of the
creaturesrecord component
-
nonCreatures
public int nonCreatures()Returns the value of thenonCreaturesrecord component.- Returns:
- the value of the
nonCreaturesrecord component
-