Record Class BundleInfo
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.bundle.info.BundleInfo
- Record Components:
id- the iddisplayName- the display name- the authorsversionInfo- the SemVerdependencies- the dependencies
public record BundleInfo(String id, String displayName, List<String> authors, BundleInfo.VersionInfo versionInfo, List<BundleDependency> dependencies)
extends Record
Similar to
All specified in "${bundleId}.bundles.toml"
IModInfo
All specified in "${bundleId}.bundles.toml"
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBundleInfo(String id, String displayName, List<String> authors, BundleInfo.VersionInfo versionInfo, List<BundleDependency> dependencies) Creates an instance of aBundleInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthors()Returns the value of theauthorsrecord component.Returns the value of thedependenciesrecord component.Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.toString()Returns a string representation of this record class.Returns the value of theversionInforecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
BundleInfo
public BundleInfo(String id, String displayName, List<String> authors, BundleInfo.VersionInfo versionInfo, List<BundleDependency> dependencies) Creates an instance of aBundleInforecord class.- Parameters:
id- the value for theidrecord componentdisplayName- the value for thedisplayNamerecord componentauthors- the value for theauthorsrecord componentversionInfo- the value for theversionInforecord componentdependencies- the value for thedependenciesrecord component
-
-
Method Details
-
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). -
id
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
authors
-
versionInfo
Returns the value of theversionInforecord component.- Returns:
- the value of the
versionInforecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-