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 ofCreature
s including blacklistedtotalNonCreatures
- amount of nonCreature
s including blacklistedcreatures
- amount ofCreature
snonCreatures
- amount of nonCreature
s
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 aContentReport
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
blocks()
Returns the value of theblocks
record component.int
Returns the value of thecreatures
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thenonAirBlocks
record component.int
Returns the value of thenonCreatures
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetotalCreatures
record component.int
Returns the value of thetotalNonCreatures
record component.
-
Constructor Details
-
ContentReport
public ContentReport(int blocks, int nonAirBlocks, int totalCreatures, int totalNonCreatures, int creatures, int nonCreatures) Creates an instance of aContentReport
record class.- Parameters:
blocks
- the value for theblocks
record componentnonAirBlocks
- the value for thenonAirBlocks
record componenttotalCreatures
- the value for thetotalCreatures
record componenttotalNonCreatures
- the value for thetotalNonCreatures
record componentcreatures
- the value for thecreatures
record componentnonCreatures
- the value for thenonCreatures
record 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 theblocks
record component.- Returns:
- the value of the
blocks
record component
-
nonAirBlocks
public int nonAirBlocks()Returns the value of thenonAirBlocks
record component.- Returns:
- the value of the
nonAirBlocks
record component
-
totalCreatures
public int totalCreatures()Returns the value of thetotalCreatures
record component.- Returns:
- the value of the
totalCreatures
record component
-
totalNonCreatures
public int totalNonCreatures()Returns the value of thetotalNonCreatures
record component.- Returns:
- the value of the
totalNonCreatures
record component
-
creatures
public int creatures()Returns the value of thecreatures
record component.- Returns:
- the value of the
creatures
record component
-
nonCreatures
public int nonCreatures()Returns the value of thenonCreatures
record component.- Returns:
- the value of the
nonCreatures
record component
-