Record Class BundleFiles
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.bundle.info.BundleFiles
- Record Components:
root- the root path of a bundleassets- the assets path of a bundledata- the data path of a bundlescripts- the ScriptFiles data of a bundlezipFileSystem- the file system used to open a bundle if its a zip file.
public record BundleFiles(Path root, Path assets, Path data, BundleFiles.ScriptFiles scripts, Path saves, @Nullable FileSystem zipFileSystem)
extends Record
A Record of data related to Bundle Files.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBundleFiles(Path root, Path assets, Path data, BundleFiles.ScriptFiles scripts, Path saves, @Nullable FileSystem zipFileSystem) Creates an instance of aBundleFilesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionassets()Returns the value of theassetsrecord component.static BundleFilesBuilderbuilder()data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanroot()Returns the value of therootrecord component.saves()Returns the value of thesavesrecord component.intscripts()Returns the value of thescriptsrecord component.final StringtoString()Returns a string representation of this record class.@Nullable FileSystemReturns the value of thezipFileSystemrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
BundleFiles
public BundleFiles(Path root, Path assets, Path data, BundleFiles.ScriptFiles scripts, Path saves, @Nullable @Nullable FileSystem zipFileSystem) Creates an instance of aBundleFilesrecord class.- Parameters:
root- the value for therootrecord componentassets- the value for theassetsrecord componentdata- the value for thedatarecord componentscripts- the value for thescriptsrecord componentsaves- the value for thesavesrecord componentzipFileSystem- the value for thezipFileSystemrecord component
-
-
Method Details
-
builder
-
hasZipFileSystem
public boolean hasZipFileSystem() -
scriptCount
public int scriptCount() -
toString
-
hashCode
-
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). -
root
-
assets
-
data
-
scripts
-
saves
Returns the value of thesavesrecord component.- Returns:
- the value of the
savesrecord component
-
zipFileSystem
Returns the value of thezipFileSystemrecord component.- Returns:
- the value of the
zipFileSystemrecord component
-