Class RegionFileVersion
java.lang.Object
net.minecraft.world.level.chunk.storage.RegionFileVersion
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final RegionFileVersion.StreamWrapper<InputStream>
private final RegionFileVersion.StreamWrapper<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_63752_, RegionFileVersion.StreamWrapper<InputStream> p_63753_, RegionFileVersion.StreamWrapper<OutputStream> p_63754_) -
Method Summary
Modifier and TypeMethodDescriptionstatic RegionFileVersion
fromId
(int p_63757_) int
getId()
static boolean
isValidVersion
(int p_63765_) private static RegionFileVersion
register
(RegionFileVersion p_63759_) wrap
(InputStream p_63761_) wrap
(OutputStream p_63763_)
-
Field Details
-
VERSIONS
-
VERSION_GZIP
-
VERSION_DEFLATE
-
VERSION_NONE
-
id
private final int id -
inputWrapper
-
outputWrapper
-
-
Constructor Details
-
RegionFileVersion
private RegionFileVersion(int p_63752_, RegionFileVersion.StreamWrapper<InputStream> p_63753_, RegionFileVersion.StreamWrapper<OutputStream> p_63754_)
-
-
Method Details
-
register
-
fromId
-
isValidVersion
public static boolean isValidVersion(int p_63765_) -
getId
public int getId() -
wrap
- Throws:
IOException
-
wrap
- Throws:
IOException
-