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 TypeFieldDescriptionstatic final RegionFileVersion
private final int
private final RegionFileVersion.StreamWrapper
<InputStream> private static final org.slf4j.Logger
private final String
private final RegionFileVersion.StreamWrapper
<OutputStream> private static RegionFileVersion
static final RegionFileVersion
static final RegionFileVersion
static final RegionFileVersion
static final RegionFileVersion
static final RegionFileVersion
private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<RegionFileVersion> private static final it.unimi.dsi.fastutil.objects.Object2ObjectMap
<String, RegionFileVersion> -
Constructor Summary
ModifierConstructorDescriptionprivate
RegionFileVersion
(int p_63752_, String p_336103_, RegionFileVersion.StreamWrapper<InputStream> p_63753_, RegionFileVersion.StreamWrapper<OutputStream> p_63754_) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static RegionFileVersion
fromId
(int p_63757_) int
getId()
static RegionFileVersion
static boolean
isValidVersion
(int p_63765_) private static RegionFileVersion
register
(RegionFileVersion p_63759_) wrap
(InputStream p_63761_) wrap
(OutputStream p_63763_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
VERSIONS
-
VERSIONS_BY_NAME
private static final it.unimi.dsi.fastutil.objects.Object2ObjectMap<String,RegionFileVersion> VERSIONS_BY_NAME -
VERSION_GZIP
-
VERSION_DEFLATE
-
VERSION_NONE
-
VERSION_LZ4
-
VERSION_CUSTOM
-
DEFAULT
-
selected
-
id
private final int id -
optionName
-
inputWrapper
-
outputWrapper
-
-
Constructor Details
-
RegionFileVersion
private RegionFileVersion(int p_63752_, @Nullable String p_336103_, RegionFileVersion.StreamWrapper<InputStream> p_63753_, RegionFileVersion.StreamWrapper<OutputStream> p_63754_)
-
-
Method Details
-
register
-
fromId
-
configure
-
getSelected
-
isValidVersion
public static boolean isValidVersion(int p_63765_) -
getId
public int getId() -
wrap
- Throws:
IOException
-
wrap
- Throws:
IOException
-