Package org.geysermc.geyser.pack
Record Class GeyserResourcePack
java.lang.Object
java.lang.Record
org.geysermc.geyser.pack.GeyserResourcePack
- All Implemented Interfaces:
org.geysermc.geyser.api.pack.ResourcePack
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intThe size of each chunk to use when sending the resource packs to clients in bytes -
Constructor Summary
ConstructorsConstructorDescriptionGeyserResourcePack(org.geysermc.geyser.api.pack.PackCodec codec, org.geysermc.geyser.api.pack.ResourcePackManifest manifest, String contentKey)Creates an instance of aGeyserResourcePackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.geysermc.geyser.api.pack.PackCodeccodec()Returns the value of thecodecrecord component.Returns the value of thecontentKeyrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.org.geysermc.geyser.api.pack.ResourcePackManifestmanifest()Returns the value of themanifestrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
CHUNK_SIZE
public static final int CHUNK_SIZEThe size of each chunk to use when sending the resource packs to clients in bytes- See Also:
- Constant Field Values
-
-
Constructor Details
-
GeyserResourcePack
public GeyserResourcePack(org.geysermc.geyser.api.pack.PackCodec codec, org.geysermc.geyser.api.pack.ResourcePackManifest manifest, String contentKey)Creates an instance of aGeyserResourcePackrecord class.- Parameters:
codec- the value for thecodecrecord componentmanifest- the value for themanifestrecord componentcontentKey- the value for thecontentKeyrecord 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). -
codec
public org.geysermc.geyser.api.pack.PackCodec codec()Returns the value of thecodecrecord component.- Specified by:
codecin interfaceorg.geysermc.geyser.api.pack.ResourcePack- Returns:
- the value of the
codecrecord component
-
manifest
public org.geysermc.geyser.api.pack.ResourcePackManifest manifest()Returns the value of themanifestrecord component.- Specified by:
manifestin interfaceorg.geysermc.geyser.api.pack.ResourcePack- Returns:
- the value of the
manifestrecord component
-
contentKey
Returns the value of thecontentKeyrecord component.- Specified by:
contentKeyin interfaceorg.geysermc.geyser.api.pack.ResourcePack- Returns:
- the value of the
contentKeyrecord component
-