Enum Class NBT.Compression

java.lang.Object
java.lang.Enum<NBT.Compression>
org.moddingx.launcherlib.nbt.NBT.Compression
All Implemented Interfaces:
Serializable, Comparable<NBT.Compression>, Constable
Enclosing class:
NBT

public static enum NBT.Compression extends Enum<NBT.Compression>
A compression method used to read and write NBT.
  • Enum Constant Details

    • NONE

      public static final NBT.Compression NONE
      Uncompressed data. This is for example used in the servers.dat file.
    • GZIP

      public static final NBT.Compression GZIP
      GZIP compression. This is the default in most cases.
    • DEFLATE

      public static final NBT.Compression DEFLATE
      DEFLATE compression. Rarely used in minecraft.
  • Method Details

    • values

      public static NBT.Compression[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NBT.Compression valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null