Class ChunkCompressionFormat

java.lang.Object
net.minecraft.world.storage.ChunkCompressionFormat

public class ChunkCompressionFormat extends Object
Mappings:
Namespace Name
named net/minecraft/world/storage/ChunkCompressionFormat
intermediary net/minecraft/class_4486
official dvp
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/world/storage/ChunkCompressionFormat;LOGGER:Lorg/slf4j/Logger;
      intermediary field_48755 Lnet/minecraft/class_4486;field_48755:Lorg/slf4j/Logger;
      official g Ldvp;g:Lorg/slf4j/Logger;
    • FORMATS

      private static final Int2ObjectMap<ChunkCompressionFormat> FORMATS
      Mappings:
      Namespace Name Mixin selector
      named FORMATS Lnet/minecraft/world/storage/ChunkCompressionFormat;FORMATS:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_20445 Lnet/minecraft/class_4486;field_20445:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official h Ldvp;h:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • FORMAT_BY_NAME

      private static final Object2ObjectMap<String,ChunkCompressionFormat> FORMAT_BY_NAME
      Mappings:
      Namespace Name Mixin selector
      named FORMAT_BY_NAME Lnet/minecraft/world/storage/ChunkCompressionFormat;FORMAT_BY_NAME:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
      intermediary field_48756 Lnet/minecraft/class_4486;field_48756:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
      official i Ldvp;i:Lit/unimi/dsi/fastutil/objects/Object2ObjectMap;
    • GZIP

      public static final ChunkCompressionFormat GZIP
      Mappings:
      Namespace Name Mixin selector
      named GZIP Lnet/minecraft/world/storage/ChunkCompressionFormat;GZIP:Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary field_20442 Lnet/minecraft/class_4486;field_20442:Lnet/minecraft/class_4486;
      official a Ldvp;a:Ldvp;
    • DEFLATE

      public static final ChunkCompressionFormat DEFLATE
      Mappings:
      Namespace Name Mixin selector
      named DEFLATE Lnet/minecraft/world/storage/ChunkCompressionFormat;DEFLATE:Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary field_20443 Lnet/minecraft/class_4486;field_20443:Lnet/minecraft/class_4486;
      official b Ldvp;b:Ldvp;
    • UNCOMPRESSED

      public static final ChunkCompressionFormat UNCOMPRESSED
      Mappings:
      Namespace Name Mixin selector
      named UNCOMPRESSED Lnet/minecraft/world/storage/ChunkCompressionFormat;UNCOMPRESSED:Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary field_20444 Lnet/minecraft/class_4486;field_20444:Lnet/minecraft/class_4486;
      official c Ldvp;c:Ldvp;
    • LZ4

      public static final ChunkCompressionFormat LZ4
      Mappings:
      Namespace Name Mixin selector
      named LZ4 Lnet/minecraft/world/storage/ChunkCompressionFormat;LZ4:Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary field_48753 Lnet/minecraft/class_4486;field_48753:Lnet/minecraft/class_4486;
      official d Ldvp;d:Ldvp;
    • CUSTOM

      public static final ChunkCompressionFormat CUSTOM
      Mappings:
      Namespace Name Mixin selector
      named CUSTOM Lnet/minecraft/world/storage/ChunkCompressionFormat;CUSTOM:Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary field_48916 Lnet/minecraft/class_4486;field_48916:Lnet/minecraft/class_4486;
      official e Ldvp;e:Ldvp;
    • DEFAULT_FORMAT

      public static final ChunkCompressionFormat DEFAULT_FORMAT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_FORMAT Lnet/minecraft/world/storage/ChunkCompressionFormat;DEFAULT_FORMAT:Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary field_48754 Lnet/minecraft/class_4486;field_48754:Lnet/minecraft/class_4486;
      official f Ldvp;f:Ldvp;
    • currentFormat

      private static volatile ChunkCompressionFormat currentFormat
      Mappings:
      Namespace Name Mixin selector
      named currentFormat Lnet/minecraft/world/storage/ChunkCompressionFormat;currentFormat:Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary field_48757 Lnet/minecraft/class_4486;field_48757:Lnet/minecraft/class_4486;
      official j Ldvp;j:Ldvp;
    • id

      private final int id
      Mappings:
      Namespace Name Mixin selector
      named id Lnet/minecraft/world/storage/ChunkCompressionFormat;id:I
      intermediary field_20446 Lnet/minecraft/class_4486;field_20446:I
      official k Ldvp;k:I
    • name

      @Nullable private final @Nullable String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/world/storage/ChunkCompressionFormat;name:Ljava/lang/String;
      intermediary field_48758 Lnet/minecraft/class_4486;field_48758:Ljava/lang/String;
      official l Ldvp;l:Ljava/lang/String;
    • inputStreamWrapper

      private final ChunkCompressionFormat.Wrapper<InputStream> inputStreamWrapper
      Mappings:
      Namespace Name Mixin selector
      named inputStreamWrapper Lnet/minecraft/world/storage/ChunkCompressionFormat;inputStreamWrapper:Lnet/minecraft/world/storage/ChunkCompressionFormat$Wrapper;
      intermediary field_20447 Lnet/minecraft/class_4486;field_20447:Lnet/minecraft/class_4486$class_4487;
      official m Ldvp;m:Ldvp$a;
    • outputStreamWrapper

      private final ChunkCompressionFormat.Wrapper<OutputStream> outputStreamWrapper
      Mappings:
      Namespace Name Mixin selector
      named outputStreamWrapper Lnet/minecraft/world/storage/ChunkCompressionFormat;outputStreamWrapper:Lnet/minecraft/world/storage/ChunkCompressionFormat$Wrapper;
      intermediary field_20448 Lnet/minecraft/class_4486;field_20448:Lnet/minecraft/class_4486$class_4487;
      official n Ldvp;n:Ldvp$a;
  • Constructor Details

    • ChunkCompressionFormat

      private ChunkCompressionFormat(int id, @Nullable @Nullable String name, ChunkCompressionFormat.Wrapper<InputStream> inputStreamWrapper, ChunkCompressionFormat.Wrapper<OutputStream> outputStreamWrapper)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/storage/ChunkCompressionFormat;<init>(ILjava/lang/String;Lnet/minecraft/world/storage/ChunkCompressionFormat$Wrapper;Lnet/minecraft/world/storage/ChunkCompressionFormat$Wrapper;)V
      intermediary <init> Lnet/minecraft/class_4486;<init>(ILjava/lang/String;Lnet/minecraft/class_4486$class_4487;Lnet/minecraft/class_4486$class_4487;)V
      official <init> Ldvp;<init>(ILjava/lang/String;Ldvp$a;Ldvp$a;)V
  • Method Details

    • add

      private static ChunkCompressionFormat add(ChunkCompressionFormat version)
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/world/storage/ChunkCompressionFormat;add(Lnet/minecraft/world/storage/ChunkCompressionFormat;)Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary method_21884 Lnet/minecraft/class_4486;method_21884(Lnet/minecraft/class_4486;)Lnet/minecraft/class_4486;
      official a Ldvp;a(Ldvp;)Ldvp;
    • get

      @Nullable public static @Nullable ChunkCompressionFormat get(int id)
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/world/storage/ChunkCompressionFormat;get(I)Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary method_21883 Lnet/minecraft/class_4486;method_21883(I)Lnet/minecraft/class_4486;
      official a Ldvp;a(I)Ldvp;
    • setCurrentFormat

      public static void setCurrentFormat(String name)
      Mappings:
      Namespace Name Mixin selector
      named setCurrentFormat Lnet/minecraft/world/storage/ChunkCompressionFormat;setCurrentFormat(Ljava/lang/String;)V
      intermediary method_56568 Lnet/minecraft/class_4486;method_56568(Ljava/lang/String;)V
      official a Ldvp;a(Ljava/lang/String;)V
    • getCurrentFormat

      public static ChunkCompressionFormat getCurrentFormat()
      Mappings:
      Namespace Name Mixin selector
      named getCurrentFormat Lnet/minecraft/world/storage/ChunkCompressionFormat;getCurrentFormat()Lnet/minecraft/world/storage/ChunkCompressionFormat;
      intermediary method_56567 Lnet/minecraft/class_4486;method_56567()Lnet/minecraft/class_4486;
      official a Ldvp;a()Ldvp;
    • exists

      public static boolean exists(int id)
      Mappings:
      Namespace Name Mixin selector
      named exists Lnet/minecraft/world/storage/ChunkCompressionFormat;exists(I)Z
      intermediary method_21887 Lnet/minecraft/class_4486;method_21887(I)Z
      official b Ldvp;b(I)Z
    • getId

      public int getId()
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/world/storage/ChunkCompressionFormat;getId()I
      intermediary method_21882 Lnet/minecraft/class_4486;method_21882()I
      official b Ldvp;b()I
    • wrap

      public OutputStream wrap(OutputStream outputStream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named wrap Lnet/minecraft/world/storage/ChunkCompressionFormat;wrap(Ljava/io/OutputStream;)Ljava/io/OutputStream;
      intermediary method_21886 Lnet/minecraft/class_4486;method_21886(Ljava/io/OutputStream;)Ljava/io/OutputStream;
      official a Ldvp;a(Ljava/io/OutputStream;)Ljava/io/OutputStream;
    • wrap

      public InputStream wrap(InputStream inputStream) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named wrap Lnet/minecraft/world/storage/ChunkCompressionFormat;wrap(Ljava/io/InputStream;)Ljava/io/InputStream;
      intermediary method_21885 Lnet/minecraft/class_4486;method_21885(Ljava/io/InputStream;)Ljava/io/InputStream;
      official a Ldvp;a(Ljava/io/InputStream;)Ljava/io/InputStream;