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 aSanitizerReport
record class. -
Method Summary
Modifier and TypeMethodDescriptionblocks()
Returns the value of theblocks
record component.Returns the value of theblocksNbt
record component.entities()
Returns the value of theentities
record component.Returns the value of theentitiesNbt
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.limits()
Returns the value of thelimits
record component.@Nullable Path
newPath()
Returns the value of thenewPath
record component.path()
Returns the value of thepath
record component.final String
toString()
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 aSanitizerReport
record class.- Parameters:
path
- the value for thepath
record componentnewPath
- the value for thenewPath
record componententities
- the value for theentities
record componentblocks
- the value for theblocks
record componententitiesNbt
- the value for theentitiesNbt
record componentblocksNbt
- the value for theblocksNbt
record componentlimits
- the value for thelimits
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 withObjects::equals(Object,Object)
. -
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
newPath
Returns the value of thenewPath
record component.- Returns:
- the value of the
newPath
record component
-
entities
Returns the value of theentities
record component.- Returns:
- the value of the
entities
record component
-
blocks
Returns the value of theblocks
record component.- Returns:
- the value of the
blocks
record component
-
entitiesNbt
Returns the value of theentitiesNbt
record component.- Returns:
- the value of the
entitiesNbt
record component
-
blocksNbt
Returns the value of theblocksNbt
record component.- Returns:
- the value of the
blocksNbt
record component
-
limits
Returns the value of thelimits
record component.- Returns:
- the value of the
limits
record component
-