Class RegionFileVersion
- java.lang.Object
-
- net.minecraft.world.chunk.storage.RegionFileVersion
-
public class RegionFileVersion extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
RegionFileVersion.IWrapper<O>
-
Field Summary
Fields Modifier and Type Field Description private int
id
private RegionFileVersion.IWrapper<java.io.InputStream>
inputWrapper
private RegionFileVersion.IWrapper<java.io.OutputStream>
outputWrapper
static RegionFileVersion
VERSION_DEFLATE
static RegionFileVersion
VERSION_GZIP
static RegionFileVersion
VERSION_NONE
private static it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegionFileVersion>
VERSIONS
-
Constructor Summary
Constructors Modifier Constructor Description private
RegionFileVersion(int p_i225787_1_, RegionFileVersion.IWrapper<java.io.InputStream> p_i225787_2_, RegionFileVersion.IWrapper<java.io.OutputStream> p_i225787_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegionFileVersion
fromId(int p_227166_0_)
int
getId()
static boolean
isValidVersion(int p_227170_0_)
private static RegionFileVersion
register(RegionFileVersion p_227167_0_)
java.io.InputStream
wrap(java.io.InputStream p_227168_1_)
java.io.OutputStream
wrap(java.io.OutputStream p_227169_1_)
-
-
-
Field Detail
-
VERSIONS
private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegionFileVersion> VERSIONS
-
VERSION_GZIP
public static final RegionFileVersion VERSION_GZIP
-
VERSION_DEFLATE
public static final RegionFileVersion VERSION_DEFLATE
-
VERSION_NONE
public static final RegionFileVersion VERSION_NONE
-
id
private final int id
-
inputWrapper
private final RegionFileVersion.IWrapper<java.io.InputStream> inputWrapper
-
outputWrapper
private final RegionFileVersion.IWrapper<java.io.OutputStream> outputWrapper
-
-
Constructor Detail
-
RegionFileVersion
private RegionFileVersion(int p_i225787_1_, RegionFileVersion.IWrapper<java.io.InputStream> p_i225787_2_, RegionFileVersion.IWrapper<java.io.OutputStream> p_i225787_3_)
-
-
Method Detail
-
register
private static RegionFileVersion register(RegionFileVersion p_227167_0_)
-
fromId
@Nullable public static RegionFileVersion fromId(int p_227166_0_)
-
isValidVersion
public static boolean isValidVersion(int p_227170_0_)
-
getId
public int getId()
-
wrap
public java.io.OutputStream wrap(java.io.OutputStream p_227169_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
wrap
public java.io.InputStream wrap(java.io.InputStream p_227168_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
-