Package net.minecraft.world.storage
Class RegionFile
java.lang.Object
net.minecraft.world.storage.RegionFile
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name named net/minecraft/world/storage/RegionFileintermediary net/minecraft/class_2861official efd
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FileChannel(package private) final ChunkCompressionFormatprivate final Pathprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final Stringprivate final ByteBufferprivate static final Loggerprivate final Pathprivate final IntBufferprotected static final intprivate final IntBufferprotected final SectorMap(package private) final StorageKeyprivate static final ByteBuffer -
Constructor Summary
ConstructorsConstructorDescriptionRegionFile(StorageKey storageKey, Path directory, Path path, boolean dsync) RegionFile(StorageKey storageKey, Path path, Path directory, ChunkCompressionFormat compressionFormat, boolean dsync) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private @Nullable DataInputStreamdecompress(ChunkPos pos, byte flags, InputStream stream) voidprivate voidprivate static bytegetChunkStreamVersionId(byte flags) private static intprivate PathgetExternalChunkPath(ChunkPos chunkPos) private ByteBufferprivate static intprivate static ByteArrayInputStreamgetInputStream(ByteBuffer buffer, int length) private @Nullable DataInputStreamgetInputStream(ChunkPos pos, byte flags) private static intgetOffset(int sectorData) getPath()private static intgetSectorCount(int byteCount) private intgetSectorData(ChunkPos pos) private static intgetSize(int sectorData) booleanprivate static booleanhasChunkStreamVersionId(byte flags) booleanisChunkValid(ChunkPos pos) private intpackSectorData(int offset, int size) voidsync()protected voidwriteChunk(ChunkPos pos, ByteBuffer buf) private voidprivate RegionFile.OutputActionwriteSafely(Path path, ByteBuffer buf)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/world/storage/RegionFile;LOGGER:Lorg/slf4j/Logger;intermediary field_20434Lnet/minecraft/class_2861;field_20434:Lorg/slf4j/Logger;official cLefd;c:Lorg/slf4j/Logger;
-
field_31418
private static final int field_31418- See Also:
- Mappings:
Namespace Name Mixin selector named field_31418Lnet/minecraft/world/storage/RegionFile;field_31418:Iintermediary field_31418Lnet/minecraft/class_2861;field_31418:Iofficial dLefd;d:I
-
SECTOR_DATA_LIMIT
protected static final int SECTOR_DATA_LIMIT- See Also:
- Mappings:
Namespace Name Mixin selector named SECTOR_DATA_LIMITLnet/minecraft/world/storage/RegionFile;SECTOR_DATA_LIMIT:Iintermediary field_31417Lnet/minecraft/class_2861;field_31417:Iofficial aLefd;a:I
-
field_31419
private static final int field_31419- See Also:
- Mappings:
Namespace Name Mixin selector named field_31419Lnet/minecraft/world/storage/RegionFile;field_31419:Iintermediary field_31419Lnet/minecraft/class_2861;field_31419:Iofficial eLefd;e:I
-
field_31420
private static final int field_31420- See Also:
- Mappings:
Namespace Name Mixin selector named field_31420Lnet/minecraft/world/storage/RegionFile;field_31420:Iintermediary field_31420Lnet/minecraft/class_2861;field_31420:Iofficial fLefd;f:I
-
ZERO
- Mappings:
Namespace Name Mixin selector named ZEROLnet/minecraft/world/storage/RegionFile;ZERO:Ljava/nio/ByteBuffer;intermediary field_20435Lnet/minecraft/class_2861;field_20435:Ljava/nio/ByteBuffer;official gLefd;g:Ljava/nio/ByteBuffer;
-
FILE_EXTENSION
- See Also:
- Mappings:
Namespace Name Mixin selector named FILE_EXTENSIONLnet/minecraft/world/storage/RegionFile;FILE_EXTENSION:Ljava/lang/String;intermediary field_31421Lnet/minecraft/class_2861;field_31421:Ljava/lang/String;official hLefd;h:Ljava/lang/String;
-
field_31422
private static final int field_31422- See Also:
- Mappings:
Namespace Name Mixin selector named field_31422Lnet/minecraft/world/storage/RegionFile;field_31422:Iintermediary field_31422Lnet/minecraft/class_2861;field_31422:Iofficial iLefd;i:I
-
field_31423
private static final int field_31423- See Also:
- Mappings:
Namespace Name Mixin selector named field_31423Lnet/minecraft/world/storage/RegionFile;field_31423:Iintermediary field_31423Lnet/minecraft/class_2861;field_31423:Iofficial jLefd;j:I
-
field_31424
private static final int field_31424- See Also:
- Mappings:
Namespace Name Mixin selector named field_31424Lnet/minecraft/world/storage/RegionFile;field_31424:Iintermediary field_31424Lnet/minecraft/class_2861;field_31424:Iofficial kLefd;k:I
-
storageKey
- Mappings:
Namespace Name Mixin selector named storageKeyLnet/minecraft/world/storage/RegionFile;storageKey:Lnet/minecraft/world/storage/StorageKey;intermediary field_49102Lnet/minecraft/class_2861;field_49102:Lnet/minecraft/class_9240;official lLefd;l:Lefg;
-
path
- Mappings:
Namespace Name Mixin selector named pathLnet/minecraft/world/storage/RegionFile;path:Ljava/nio/file/Path;intermediary field_48752Lnet/minecraft/class_2861;field_48752:Ljava/nio/file/Path;official mLefd;m:Ljava/nio/file/Path;
-
channel
- Mappings:
Namespace Name Mixin selector named channelLnet/minecraft/world/storage/RegionFile;channel:Ljava/nio/channels/FileChannel;intermediary field_20436Lnet/minecraft/class_2861;field_20436:Ljava/nio/channels/FileChannel;official nLefd;n:Ljava/nio/channels/FileChannel;
-
directory
- Mappings:
Namespace Name Mixin selector named directoryLnet/minecraft/world/storage/RegionFile;directory:Ljava/nio/file/Path;intermediary field_20657Lnet/minecraft/class_2861;field_20657:Ljava/nio/file/Path;official oLefd;o:Ljava/nio/file/Path;
-
compressionFormat
- Mappings:
Namespace Name Mixin selector named compressionFormatLnet/minecraft/world/storage/RegionFile;compressionFormat:Lnet/minecraft/world/storage/ChunkCompressionFormat;intermediary field_20437Lnet/minecraft/class_2861;field_20437:Lnet/minecraft/class_4486;official pLefd;p:Leff;
-
header
- Mappings:
Namespace Name Mixin selector named headerLnet/minecraft/world/storage/RegionFile;header:Ljava/nio/ByteBuffer;intermediary field_20438Lnet/minecraft/class_2861;field_20438:Ljava/nio/ByteBuffer;official qLefd;q:Ljava/nio/ByteBuffer;
-
sectorData
- Mappings:
Namespace Name Mixin selector named sectorDataLnet/minecraft/world/storage/RegionFile;sectorData:Ljava/nio/IntBuffer;intermediary field_20439Lnet/minecraft/class_2861;field_20439:Ljava/nio/IntBuffer;official rLefd;r:Ljava/nio/IntBuffer;
-
saveTimes
- Mappings:
Namespace Name Mixin selector named saveTimesLnet/minecraft/world/storage/RegionFile;saveTimes:Ljava/nio/IntBuffer;intermediary field_20440Lnet/minecraft/class_2861;field_20440:Ljava/nio/IntBuffer;official sLefd;s:Ljava/nio/IntBuffer;
-
sectors
- Mappings:
Namespace Name Mixin selector named sectorsLnet/minecraft/world/storage/RegionFile;sectors:Lnet/minecraft/world/storage/SectorMap;intermediary field_20441Lnet/minecraft/class_2861;field_20441:Lnet/minecraft/class_4485;official bLefd;b:Lefc;
-
-
Constructor Details
-
RegionFile
public RegionFile(StorageKey storageKey, Path directory, Path path, boolean dsync) throws IOException - Throws:
IOException- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/storage/RegionFile;<init>(Lnet/minecraft/world/storage/StorageKey;Ljava/nio/file/Path;Ljava/nio/file/Path;Z)Vintermediary <init>Lnet/minecraft/class_2861;<init>(Lnet/minecraft/class_9240;Ljava/nio/file/Path;Ljava/nio/file/Path;Z)Vofficial <init>Lefd;<init>(Lefg;Ljava/nio/file/Path;Ljava/nio/file/Path;Z)V
-
RegionFile
public RegionFile(StorageKey storageKey, Path path, Path directory, ChunkCompressionFormat compressionFormat, boolean dsync) throws IOException - Throws:
IOException- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/storage/RegionFile;<init>(Lnet/minecraft/world/storage/StorageKey;Ljava/nio/file/Path;Ljava/nio/file/Path;Lnet/minecraft/world/storage/ChunkCompressionFormat;Z)Vintermediary <init>Lnet/minecraft/class_2861;<init>(Lnet/minecraft/class_9240;Ljava/nio/file/Path;Ljava/nio/file/Path;Lnet/minecraft/class_4486;Z)Vofficial <init>Lefd;<init>(Lefg;Ljava/nio/file/Path;Ljava/nio/file/Path;Leff;Z)V
-
-
Method Details
-
getPath
- Mappings:
Namespace Name Mixin selector named getPathLnet/minecraft/world/storage/RegionFile;getPath()Ljava/nio/file/Path;intermediary method_56566Lnet/minecraft/class_2861;method_56566()Ljava/nio/file/Path;official aLefd;a()Ljava/nio/file/Path;
-
getExternalChunkPath
- Mappings:
Namespace Name Mixin selector named getExternalChunkPathLnet/minecraft/world/storage/RegionFile;getExternalChunkPath(Lnet/minecraft/util/math/ChunkPos;)Ljava/nio/file/Path;intermediary method_22413Lnet/minecraft/class_2861;method_22413(Lnet/minecraft/class_1923;)Ljava/nio/file/Path;official fLefd;f(Ldjo;)Ljava/nio/file/Path;
-
getChunkInputStream
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named getChunkInputStreamLnet/minecraft/world/storage/RegionFile;getChunkInputStream(Lnet/minecraft/util/math/ChunkPos;)Ljava/io/DataInputStream;intermediary method_21873Lnet/minecraft/class_2861;method_21873(Lnet/minecraft/class_1923;)Ljava/io/DataInputStream;official aLefd;a(Ldjo;)Ljava/io/DataInputStream;
-
getEpochTimeSeconds
private static int getEpochTimeSeconds()- Mappings:
Namespace Name Mixin selector named getEpochTimeSecondsLnet/minecraft/world/storage/RegionFile;getEpochTimeSeconds()Iintermediary method_31739Lnet/minecraft/class_2861;method_31739()Iofficial cLefd;c()I
-
hasChunkStreamVersionId
private static boolean hasChunkStreamVersionId(byte flags) - Mappings:
Namespace Name Mixin selector named hasChunkStreamVersionIdLnet/minecraft/world/storage/RegionFile;hasChunkStreamVersionId(B)Zintermediary method_22407Lnet/minecraft/class_2861;method_22407(B)Zofficial aLefd;a(B)Z
-
getChunkStreamVersionId
private static byte getChunkStreamVersionId(byte flags) - Mappings:
Namespace Name Mixin selector named getChunkStreamVersionIdLnet/minecraft/world/storage/RegionFile;getChunkStreamVersionId(B)Bintermediary method_22412Lnet/minecraft/class_2861;method_22412(B)Bofficial bLefd;b(B)B
-
decompress
@Nullable private @Nullable DataInputStream decompress(ChunkPos pos, byte flags, InputStream stream) throws IOException - Throws:
IOException- Mappings:
Namespace Name Mixin selector named decompressLnet/minecraft/world/storage/RegionFile;decompress(Lnet/minecraft/util/math/ChunkPos;BLjava/io/InputStream;)Ljava/io/DataInputStream;intermediary method_22409Lnet/minecraft/class_2861;method_22409(Lnet/minecraft/class_1923;BLjava/io/InputStream;)Ljava/io/DataInputStream;official aLefd;a(Ldjo;BLjava/io/InputStream;)Ljava/io/DataInputStream;
-
getInputStream
@Nullable private @Nullable DataInputStream getInputStream(ChunkPos pos, byte flags) throws IOException - Throws:
IOException- Mappings:
Namespace Name Mixin selector named getInputStreamLnet/minecraft/world/storage/RegionFile;getInputStream(Lnet/minecraft/util/math/ChunkPos;B)Ljava/io/DataInputStream;intermediary method_22408Lnet/minecraft/class_2861;method_22408(Lnet/minecraft/class_1923;B)Ljava/io/DataInputStream;official aLefd;a(Ldjo;B)Ljava/io/DataInputStream;
-
getInputStream
- Mappings:
Namespace Name Mixin selector named getInputStreamLnet/minecraft/world/storage/RegionFile;getInputStream(Ljava/nio/ByteBuffer;I)Ljava/io/ByteArrayInputStream;intermediary method_21876Lnet/minecraft/class_2861;method_21876(Ljava/nio/ByteBuffer;I)Ljava/io/ByteArrayInputStream;official aLefd;a(Ljava/nio/ByteBuffer;I)Ljava/io/ByteArrayInputStream;
-
packSectorData
private int packSectorData(int offset, int size) - Mappings:
Namespace Name Mixin selector named packSectorDataLnet/minecraft/world/storage/RegionFile;packSectorData(II)Iintermediary method_21872Lnet/minecraft/class_2861;method_21872(II)Iofficial aLefd;a(II)I
-
getSize
private static int getSize(int sectorData) - Mappings:
Namespace Name Mixin selector named getSizeLnet/minecraft/world/storage/RegionFile;getSize(I)Iintermediary method_21871Lnet/minecraft/class_2861;method_21871(I)Iofficial aLefd;a(I)I
-
getOffset
private static int getOffset(int sectorData) - Mappings:
Namespace Name Mixin selector named getOffsetLnet/minecraft/world/storage/RegionFile;getOffset(I)Iintermediary method_21878Lnet/minecraft/class_2861;method_21878(I)Iofficial bLefd;b(I)I
-
getSectorCount
private static int getSectorCount(int byteCount) - Mappings:
Namespace Name Mixin selector named getSectorCountLnet/minecraft/world/storage/RegionFile;getSectorCount(I)Iintermediary method_21880Lnet/minecraft/class_2861;method_21880(I)Iofficial cLefd;c(I)I
-
isChunkValid
- Mappings:
Namespace Name Mixin selector named isChunkValidLnet/minecraft/world/storage/RegionFile;isChunkValid(Lnet/minecraft/util/math/ChunkPos;)Zintermediary method_21879Lnet/minecraft/class_2861;method_21879(Lnet/minecraft/class_1923;)Zofficial bLefd;b(Ldjo;)Z
-
getChunkOutputStream
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named getChunkOutputStreamLnet/minecraft/world/storage/RegionFile;getChunkOutputStream(Lnet/minecraft/util/math/ChunkPos;)Ljava/io/DataOutputStream;intermediary method_21881Lnet/minecraft/class_2861;method_21881(Lnet/minecraft/class_1923;)Ljava/io/DataOutputStream;official cLefd;c(Ldjo;)Ljava/io/DataOutputStream;
-
sync
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named syncLnet/minecraft/world/storage/RegionFile;sync()Vintermediary method_26981Lnet/minecraft/class_2861;method_26981()Vofficial bLefd;b()V
-
delete
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named deleteLnet/minecraft/world/storage/RegionFile;delete(Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_31740Lnet/minecraft/class_2861;method_31740(Lnet/minecraft/class_1923;)Vofficial dLefd;d(Ldjo;)V
-
writeChunk
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named writeChunkLnet/minecraft/world/storage/RegionFile;writeChunk(Lnet/minecraft/util/math/ChunkPos;Ljava/nio/ByteBuffer;)Vintermediary method_21874Lnet/minecraft/class_2861;method_21874(Lnet/minecraft/class_1923;Ljava/nio/ByteBuffer;)Vofficial aLefd;a(Ldjo;Ljava/nio/ByteBuffer;)V
-
getHeaderBuf
- Mappings:
Namespace Name Mixin selector named getHeaderBufLnet/minecraft/world/storage/RegionFile;getHeaderBuf()Ljava/nio/ByteBuffer;intermediary method_22406Lnet/minecraft/class_2861;method_22406()Ljava/nio/ByteBuffer;official dLefd;d()Ljava/nio/ByteBuffer;
-
writeSafely
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named writeSafelyLnet/minecraft/world/storage/RegionFile;writeSafely(Ljava/nio/file/Path;Ljava/nio/ByteBuffer;)Lnet/minecraft/world/storage/RegionFile$OutputAction;intermediary method_22410Lnet/minecraft/class_2861;method_22410(Ljava/nio/file/Path;Ljava/nio/ByteBuffer;)Lnet/minecraft/class_2861$class_4549;official aLefd;a(Ljava/nio/file/Path;Ljava/nio/ByteBuffer;)Lefd$b;
-
writeHeader
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named writeHeaderLnet/minecraft/world/storage/RegionFile;writeHeader()Vintermediary method_21870Lnet/minecraft/class_2861;method_21870()Vofficial eLefd;e()V
-
getSectorData
- Mappings:
Namespace Name Mixin selector named getSectorDataLnet/minecraft/world/storage/RegionFile;getSectorData(Lnet/minecraft/util/math/ChunkPos;)Iintermediary method_12419Lnet/minecraft/class_2861;method_12419(Lnet/minecraft/class_1923;)Iofficial gLefd;g(Ldjo;)I
-
hasChunk
- Mappings:
Namespace Name Mixin selector named hasChunkLnet/minecraft/world/storage/RegionFile;hasChunk(Lnet/minecraft/util/math/ChunkPos;)Zintermediary method_12423Lnet/minecraft/class_2861;method_12423(Lnet/minecraft/class_1923;)Zofficial eLefd;e(Ldjo;)Z
-
getIndex
- Mappings:
Namespace Name Mixin selector named getIndexLnet/minecraft/world/storage/RegionFile;getIndex(Lnet/minecraft/util/math/ChunkPos;)Iintermediary method_17909Lnet/minecraft/class_2861;method_17909(Lnet/minecraft/class_1923;)Iofficial hLefd;h(Ldjo;)I
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
fillLastSector
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named fillLastSectorLnet/minecraft/world/storage/RegionFile;fillLastSector()Vintermediary method_21877Lnet/minecraft/class_2861;method_21877()Vofficial fLefd;f()V
-