Record Class BundleInfo.VersionInfo
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.bundle.info.BundleInfo.VersionInfo
- Enclosing class:
BundleInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<BundleInfo.VersionInfo> static final com.mojang.serialization.Codec<BundleInfo.VersionInfo> -
Constructor Summary
ConstructorsConstructorDescriptionVersionInfo(int major, int minor, int patch) Creates an instance of aVersionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmajor()Returns the value of themajorrecord component.intminor()Returns the value of theminorrecord component.static BundleInfo.VersionInfointpatch()Returns the value of thepatchrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
STRING_CODEC
-
-
Constructor Details
-
VersionInfo
public VersionInfo(int major, int minor, int patch) Creates an instance of aVersionInforecord class.- Parameters:
major- the value for themajorrecord componentminor- the value for theminorrecord componentpatch- the value for thepatchrecord component
-
-
Method Details
-
parse
-
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 with thecomparemethod from their corresponding wrapper classes. -
major
public int major()Returns the value of themajorrecord component.- Returns:
- the value of the
majorrecord component
-
minor
public int minor()Returns the value of theminorrecord component.- Returns:
- the value of the
minorrecord component
-
patch
public int patch()Returns the value of thepatchrecord component.- Returns:
- the value of the
patchrecord component
-