Record Class SchematicExport.SchematicExportResult
java.lang.Object
java.lang.Record
com.simibubi.create.content.schematics.SchematicExport.SchematicExportResult
- Enclosing class:
SchematicExport
-
Constructor Summary
ConstructorsConstructorDescriptionSchematicExportResult(Path file, Path dir, String fileName, boolean overwritten, net.minecraft.core.BlockPos origin, net.minecraft.core.BlockPos bounds) Creates an instance of aSchematicExportResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.BlockPosbounds()Returns the value of theboundsrecord component.dir()Returns the value of thedirrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.core.BlockPosorigin()Returns the value of theoriginrecord component.booleanReturns the value of theoverwrittenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SchematicExportResult
public SchematicExportResult(Path file, Path dir, String fileName, boolean overwritten, net.minecraft.core.BlockPos origin, net.minecraft.core.BlockPos bounds) Creates an instance of aSchematicExportResultrecord class.- Parameters:
file- the value for thefilerecord componentdir- the value for thedirrecord componentfileName- the value for thefileNamerecord componentoverwritten- the value for theoverwrittenrecord componentorigin- the value for theoriginrecord componentbounds- the value for theboundsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
dir
Returns the value of thedirrecord component.- Returns:
- the value of the
dirrecord component
-
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord component
-
overwritten
public boolean overwritten()Returns the value of theoverwrittenrecord component.- Returns:
- the value of the
overwrittenrecord component
-
origin
public net.minecraft.core.BlockPos origin()Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
bounds
public net.minecraft.core.BlockPos bounds()Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-