net.minecraft.world.level.chunk.storage

public class RegionFile

implements AutoCloseable

ebg
net.minecraft.world.level.chunk.storage.RegionFile
net.minecraft.class_2861
net.minecraft.world.storage.RegionFile
net.minecraft.world.level.chunk.storage.RegionFile

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_20434
LOGGER
private static final int
d
SECTOR_BYTES
field_31418
field_31418
protected static final int
a
SECTOR_INTS
field_31417
SECTOR_DATA_LIMIT
private static final int
e
CHUNK_HEADER_SIZE
field_31419
field_31419
private static final int
f
HEADER_OFFSET
field_31420
field_31420
private static final ByteBuffer
g
PADDING_BUFFER
field_20435
ZERO
private static final String
h
EXTERNAL_FILE_EXTENSION
field_31421
FILE_EXTENSION
private static final int
i
EXTERNAL_STREAM_FLAG
field_31422
field_31422
private static final int
j
EXTERNAL_CHUNK_THRESHOLD
field_31423
field_31423
private static final int
k
CHUNK_NOT_PRESENT
field_31424
field_31424
final RegionStorageInfo
l
info
field_49102
storageKey
private final Path
m
path
field_48752
path
private final FileChannel
n
file
field_20436
channel
private final Path
o
externalFileDir
field_20657
directory
final RegionFileVersion
p
version
field_20437
compressionFormat
private final ByteBuffer
q
header
field_20438
header
private final IntBuffer
r
offsets
field_20439
sectorData
private final IntBuffer
s
timestamps
field_20440
saveTimes
protected final RegionBitmap
b
usedSectors
field_20441
sectors

Constructor summary

ModifierConstructor
public (RegionStorageInfo storageKey, Path directory, Path path, boolean dsync)
public (RegionStorageInfo storageKey, Path path, Path directory, RegionFileVersion compressionFormat, boolean dsync)

Method summary

Modifier and TypeMethod
public Path
a()
getPath()
method_56566()
getPath()
private Path
f(dgo arg0)
getExternalChunkPath(ChunkPos arg0)
method_22413(class_1923 arg0)
getExternalChunkPath(ChunkPos chunkPos)
public synchronized DataInputStream
a(dgo arg0)
getChunkDataInputStream(ChunkPos arg0)
method_21873(class_1923 arg0)
getChunkInputStream(ChunkPos pos)
private static int
c()
getTimestamp()
method_31739()
getEpochTimeSeconds()
private static boolean
a(byte arg0)
isExternalStreamChunk(byte arg0)
method_22407(byte arg0)
hasChunkStreamVersionId(byte flags)
private static byte
b(byte arg0)
getExternalChunkVersion(byte arg0)
method_22412(byte arg0)
getChunkStreamVersionId(byte flags)
private DataInputStream
a(dgo arg0, byte arg1, InputStream arg2)
createChunkInputStream(ChunkPos arg0, byte arg1, InputStream arg2)
method_22409(class_1923 arg0, byte arg1, InputStream arg2)
decompress(ChunkPos pos, byte flags, InputStream stream)
private DataInputStream
a(dgo arg0, byte arg1)
createExternalChunkInputStream(ChunkPos arg0, byte arg1)
method_22408(class_1923 arg0, byte arg1)
getInputStream(ChunkPos pos, byte flags)
private static ByteArrayInputStream
a(ByteBuffer arg0, int arg1)
createStream(ByteBuffer arg0, int arg1)
method_21876(ByteBuffer arg0, int arg1)
getInputStream(ByteBuffer buffer, int length)
private int
a(int arg0, int arg1)
packSectorOffset(int arg0, int arg1)
method_21872(int arg0, int arg1)
packSectorData(int offset, int size)
private static int
a(int arg0)
getNumSectors(int arg0)
method_21871(int arg0)
getSize(int sectorData)
private static int
b(int arg0)
getSectorNumber(int arg0)
method_21878(int arg0)
getOffset(int sectorData)
private static int
c(int arg0)
sizeToSectors(int arg0)
method_21880(int arg0)
getSectorCount(int byteCount)
public boolean
b(dgo arg0)
doesChunkExist(ChunkPos arg0)
method_21879(class_1923 arg0)
isChunkValid(ChunkPos pos)
public DataOutputStream
c(dgo arg0)
getChunkDataOutputStream(ChunkPos arg0)
method_21881(class_1923 arg0)
getChunkOutputStream(ChunkPos pos)
public void
b()
flush()
method_26981()
sync()
public void
d(dgo arg0)
clear(ChunkPos arg0)
method_31740(class_1923 arg0)
delete(ChunkPos pos)
protected synchronized void
a(dgo arg0, ByteBuffer arg1)
write(ChunkPos arg0, ByteBuffer arg1)
method_21874(class_1923 arg0, ByteBuffer arg1)
writeChunk(ChunkPos pos, ByteBuffer buf)
private ByteBuffer
d()
createExternalStub()
method_22406()
getHeaderBuf()
private RegionFile$CommitOp
a(Path arg0, ByteBuffer arg1)
writeToExternalFile(Path arg0, ByteBuffer arg1)
method_22410(Path arg0, ByteBuffer arg1)
writeSafely(Path path, ByteBuffer buf)
private void
e()
writeHeader()
method_21870()
writeHeader()
private int
g(dgo arg0)
getOffset(ChunkPos arg0)
method_12419(class_1923 arg0)
getSectorData(ChunkPos pos)
public boolean
e(dgo arg0)
hasChunk(ChunkPos arg0)
method_12423(class_1923 arg0)
hasChunk(ChunkPos pos)
private static int
h(dgo arg0)
getOffsetIndex(ChunkPos arg0)
method_17909(class_1923 arg0)
getIndex(ChunkPos pos)
public void
close()
close()
private void
f()
padToFullSector()
method_21877()
fillLastSector()