Package org.geysermc.geyser.pack
Record Class GeyserResourcePackManifest.Subpack
java.lang.Object
java.lang.Record
org.geysermc.geyser.pack.GeyserResourcePackManifest.Subpack
- All Implemented Interfaces:
org.geysermc.geyser.api.pack.ResourcePackManifest.Subpack
- Enclosing class:
GeyserResourcePackManifest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefolderNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thememoryTierrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Subpack
Creates an instance of aSubpackrecord class.- Parameters:
folderName- the value for thefolderNamerecord componentname- the value for thenamerecord componentmemoryTier- the value for thememoryTierrecord 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). -
folderName
Returns the value of thefolderNamerecord component.- Specified by:
folderNamein interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Subpack- Returns:
- the value of the
folderNamerecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Subpack- Returns:
- the value of the
namerecord component
-
memoryTier
Returns the value of thememoryTierrecord component.- Specified by:
memoryTierin interfaceorg.geysermc.geyser.api.pack.ResourcePackManifest.Subpack- Returns:
- the value of the
memoryTierrecord component
-