Package org.geysermc.geyser.pack
Record Class GeyserResourcePackManifest.Dependency
java.lang.Object
java.lang.Record
org.geysermc.geyser.pack.GeyserResourcePackManifest.Dependency
- All Implemented Interfaces:
org.geysermc.geyser.api.pack.ResourcePackManifest.Dependency
- Enclosing class:
- GeyserResourcePackManifest
public static record GeyserResourcePackManifest.Dependency(UUID uuid, GeyserResourcePackManifest.Version version)
extends Record
implements org.geysermc.geyser.api.pack.ResourcePackManifest.Dependency
-
Constructor Summary
ConstructorsConstructorDescriptionDependency(UUID uuid, GeyserResourcePackManifest.Version version)Creates an instance of aDependencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Dependency
Creates an instance of aDependencyrecord class.- Parameters:
uuid- the value for theuuidrecord componentversion- the value for theversionrecord 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). -
uuid
Returns the value of theuuidrecord component.- Specified by:
uuidin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Dependency- Returns:
- the value of the
uuidrecord component
-
version
Returns the value of theversionrecord component.- Specified by:
versionin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Dependency- Returns:
- the value of the
versionrecord component
-