Package org.geysermc.geyser.pack
Record Class GeyserResourcePackManifest.Header
java.lang.Object
java.lang.Record
org.geysermc.geyser.pack.GeyserResourcePackManifest.Header
- All Implemented Interfaces:
org.geysermc.geyser.api.pack.ResourcePackManifest.Header
- Enclosing class:
- GeyserResourcePackManifest
public static record GeyserResourcePackManifest.Header(UUID uuid, GeyserResourcePackManifest.Version version, String name, String description, GeyserResourcePackManifest.Version minimumSupportedMinecraftVersion)
extends Record
implements org.geysermc.geyser.api.pack.ResourcePackManifest.Header
-
Constructor Summary
ConstructorsConstructorDescriptionHeader(UUID uuid, GeyserResourcePackManifest.Version version, String name, String description, GeyserResourcePackManifest.Version minimumSupportedMinecraftVersion) Creates an instance of aHeaderrecord 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.Returns the value of theminimumSupportedMinecraftVersionrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Header
public Header(UUID uuid, GeyserResourcePackManifest.Version version, String name, String description, GeyserResourcePackManifest.Version minimumSupportedMinecraftVersion) Creates an instance of aHeaderrecord class.- Parameters:
uuid- the value for theuuidrecord componentversion- the value for theversionrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentminimumSupportedMinecraftVersion- the value for theminimumSupportedMinecraftVersionrecord 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.Header- Returns:
- the value of the
uuidrecord component
-
version
Returns the value of theversionrecord component.- Specified by:
versionin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Header- Returns:
- the value of the
versionrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Header- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Header- Returns:
- the value of the
descriptionrecord component
-
minimumSupportedMinecraftVersion
Returns the value of theminimumSupportedMinecraftVersionrecord component.- Specified by:
minimumSupportedMinecraftVersionin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Header- Returns:
- the value of the
minimumSupportedMinecraftVersionrecord component
-