Package org.geysermc.geyser.pack
Record Class GeyserResourcePackManifest.Module
java.lang.Object
java.lang.Record
org.geysermc.geyser.pack.GeyserResourcePackManifest.Module
- All Implemented Interfaces:
org.geysermc.geyser.api.pack.ResourcePackManifest.Module
- Enclosing class:
GeyserResourcePackManifest
public static record GeyserResourcePackManifest.Module(UUID uuid, GeyserResourcePackManifest.Version version, String type, String description)
extends Record
implements org.geysermc.geyser.api.pack.ResourcePackManifest.Module
-
Constructor Summary
ConstructorsConstructorDescriptionModule(UUID uuid, GeyserResourcePackManifest.Version version, String type, String description) Creates an instance of aModulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.uuid()Returns the value of theuuidrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Module
public Module(UUID uuid, GeyserResourcePackManifest.Version version, String type, String description) Creates an instance of aModulerecord class.- Parameters:
uuid- the value for theuuidrecord componentversion- the value for theversionrecord componenttype- the value for thetyperecord componentdescription- the value for thedescriptionrecord 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.Module- Returns:
- the value of the
uuidrecord component
-
version
Returns the value of theversionrecord component.- Specified by:
versionin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Module- Returns:
- the value of the
versionrecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Module- Returns:
- the value of the
typerecord component
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Module- Returns:
- the value of the
descriptionrecord component
-