Class PackExt


  • public class PackExt
    extends Object
    A pack file extension.
    • Field Detail

      • PACK

        public static final PackExt PACK
        A pack file extension.
      • INDEX

        public static final PackExt INDEX
        A pack index file extension.
      • BITMAP_INDEX

        public static final PackExt BITMAP_INDEX
        A pack bitmap index file extension.
    • Method Detail

      • values

        public static PackExt[] values()
        Returns:
        all of the PackExt values.
      • newPackExt

        public static PackExt newPackExt​(String ext)
        Returns a PackExt for the file extension and registers it in the values array.
        Parameters:
        ext - the file extension.
        Returns:
        the PackExt for the ext
      • getExtension

        public String getExtension()
        Returns:
        the file extension.
      • getPosition

        public int getPosition()
        Returns:
        the position of the extension in the values array.
      • getBit

        public int getBit()
        Returns:
        the bit mask of the extension e.g 1 << getPosition().