Class RegionFileVersion
java.lang.Object
net.minecraft.world.chunk.storage.RegionFileVersion
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final RegionFileVersion.IWrapper<InputStream>
private final RegionFileVersion.IWrapper<OutputStream>
static final RegionFileVersion
static final RegionFileVersion
static final RegionFileVersion
private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegionFileVersion>
-
Constructor Summary
ModifierConstructorDescriptionprivate
RegionFileVersion
(int p_i225787_1_, RegionFileVersion.IWrapper<InputStream> p_i225787_2_, RegionFileVersion.IWrapper<OutputStream> p_i225787_3_) -
Method Summary
Modifier and TypeMethodDescriptionstatic RegionFileVersion
fromId
(int p_227166_0_) int
getId()
static boolean
isValidVersion
(int p_227170_0_) private static RegionFileVersion
register
(RegionFileVersion p_227167_0_) wrap
(InputStream p_227168_1_) wrap
(OutputStream p_227169_1_)
-
Field Details
-
VERSIONS
-
VERSION_GZIP
-
VERSION_DEFLATE
-
VERSION_NONE
-
id
private final int id -
inputWrapper
-
outputWrapper
-
-
Constructor Details
-
RegionFileVersion
private RegionFileVersion(int p_i225787_1_, RegionFileVersion.IWrapper<InputStream> p_i225787_2_, RegionFileVersion.IWrapper<OutputStream> p_i225787_3_)
-
-
Method Details
-
register
-
fromId
-
isValidVersion
public static boolean isValidVersion(int p_227170_0_) -
getId
public int getId() -
wrap
- Throws:
IOException
-
wrap
- Throws:
IOException
-