Package org.geysermc.geyser.pack
Record Class GeyserResourcePackManifest
java.lang.Object
java.lang.Record
org.geysermc.geyser.pack.GeyserResourcePackManifest
- All Implemented Interfaces:
org.geysermc.geyser.api.pack.ResourcePackManifest
public record GeyserResourcePackManifest(int formatVersion, GeyserResourcePackManifest.Header header, Collection<GeyserResourcePackManifest.Module> modules, Collection<GeyserResourcePackManifest.Dependency> dependencies)
extends Record
implements org.geysermc.geyser.api.pack.ResourcePackManifest
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionGeyserResourcePackManifest(int formatVersion, GeyserResourcePackManifest.Header header, Collection<GeyserResourcePackManifest.Module> modules, Collection<GeyserResourcePackManifest.Dependency> dependencies) Creates an instance of aGeyserResourcePackManifestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theformatVersionrecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.modules()Returns the value of themodulesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeyserResourcePackManifest
public GeyserResourcePackManifest(int formatVersion, GeyserResourcePackManifest.Header header, Collection<GeyserResourcePackManifest.Module> modules, Collection<GeyserResourcePackManifest.Dependency> dependencies) Creates an instance of aGeyserResourcePackManifestrecord class.- Parameters:
formatVersion- the value for theformatVersionrecord componentheader- the value for theheaderrecord componentmodules- the value for themodulesrecord componentdependencies- the value for thedependenciesrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
formatVersion
public int formatVersion()Returns the value of theformatVersionrecord component.- Specified by:
formatVersionin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest- Returns:
- the value of the
formatVersionrecord component
-
header
Returns the value of theheaderrecord component.- Specified by:
headerin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest- Returns:
- the value of the
headerrecord component
-
modules
Returns the value of themodulesrecord component.- Specified by:
modulesin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest- Returns:
- the value of the
modulesrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Specified by:
dependenciesin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest- Returns:
- the value of the
dependenciesrecord component
-