Record Class SanitizerReport
java.lang.Object
java.lang.Record
de.eldoria.schematicsanitizer.sanitizer.report.SanitizerReport
- Record Components:
newPath- the new path of the file if one was createdentities- the removed entities because of their typeblocks- the removed blocks because of their typeentitiesNbt- the removed entities because of their tagsblocksNbt- the removed blocks because of their tagslimits- the limits or the schematics
public record SanitizerReport(Path path, @Nullable Path newPath, EntityReport entities, BlockReport blocks, EntityNbtReport entitiesNbt, BlockNbtReport blocksNbt, LimitReport limits)
extends Record
A report representing actions taken by a
Sanitizer process.-
Constructor Summary
ConstructorsConstructorDescriptionSanitizerReport(Path path, @Nullable Path newPath, EntityReport entities, BlockReport blocks, EntityNbtReport entitiesNbt, BlockNbtReport blocksNbt, LimitReport limits) Creates an instance of aSanitizerReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.Returns the value of theblocksNbtrecord component.entities()Returns the value of theentitiesrecord component.Returns the value of theentitiesNbtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.limits()Returns the value of thelimitsrecord component.@Nullable PathnewPath()Returns the value of thenewPathrecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SanitizerReport
public SanitizerReport(Path path, @Nullable @Nullable Path newPath, EntityReport entities, BlockReport blocks, EntityNbtReport entitiesNbt, BlockNbtReport blocksNbt, LimitReport limits) Creates an instance of aSanitizerReportrecord class.- Parameters:
path- the value for thepathrecord componentnewPath- the value for thenewPathrecord componententities- the value for theentitiesrecord componentblocks- the value for theblocksrecord componententitiesNbt- the value for theentitiesNbtrecord componentblocksNbt- the value for theblocksNbtrecord componentlimits- the value for thelimitsrecord 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 withObjects::equals(Object,Object). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
newPath
Returns the value of thenewPathrecord component.- Returns:
- the value of the
newPathrecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-
blocks
Returns the value of theblocksrecord component.- Returns:
- the value of the
blocksrecord component
-
entitiesNbt
Returns the value of theentitiesNbtrecord component.- Returns:
- the value of the
entitiesNbtrecord component
-
blocksNbt
Returns the value of theblocksNbtrecord component.- Returns:
- the value of the
blocksNbtrecord component
-
limits
Returns the value of thelimitsrecord component.- Returns:
- the value of the
limitsrecord component
-