Class ResourcePack

java.lang.Object
org.geysermc.geyser.pack.ResourcePack

public class ResourcePack extends Object
This represents a resource pack and all the data relevant to it
  • Field Details

    • PACKS

      public static final Map<String,​ResourcePack> PACKS
      The list of loaded resource packs
    • CHUNK_SIZE

      public static final int CHUNK_SIZE
      The size of each chunk to use when sending the resource packs to clients in bytes
      See Also:
      Constant Field Values
  • Constructor Details

    • ResourcePack

      public ResourcePack()
  • Method Details

    • loadPacks

      public static void loadPacks()
      Loop through the packs directory and locate valid resource pack files
    • getSha256

      public byte[] getSha256()
    • getFile

      public File getFile()
    • getManifest

      public ResourcePackManifest getManifest()
    • getVersion

      public ResourcePackManifest.Version getVersion()