net.minecraft.world.level.chunk.storage

public class RegionFile

implements AutoCloseable

edu
net.minecraft.world.level.chunk.storage.RegionFile
net.minecraft.class_2861
net.minecraft.unmapped.C_kykyawqb
net.minecraft.world.storage.RegionFile
net.minecraft.world.storage.RegionFile

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_20434
f_mvitofjf
LOGGER
LOGGER
private static final int
d
SECTOR_BYTES
field_31418
f_ecfxbygp
field_31418
SECTOR_BYTE_LIMIT
protected static final int
a
SECTOR_INTS
field_31417
f_srhyfbtq
SECTOR_DATA_LIMIT
SECTOR_INT_LIMIT
private static final int
e
CHUNK_HEADER_SIZE
field_31419
f_torejiiv
field_31419
CHUNK_HEADER_SIZE
private static final int
f
HEADER_OFFSET
field_31420
f_pebydogu
field_31420
HEADER_OFFSET
private static final ByteBuffer
g
PADDING_BUFFER
field_20435
f_mmilontz
ZERO
PADDING_BUFFER
private static final String
h
EXTERNAL_FILE_EXTENSION
field_31421
f_knlsaycj
FILE_EXTENSION
EXTERNAL_FILE_EXTENSION
private static final int
i
EXTERNAL_STREAM_FLAG
field_31422
f_uzbltvoa
field_31422
EXTERNAL_STREAM_FLAG
private static final int
j
EXTERNAL_CHUNK_THRESHOLD
field_31423
f_egrpyabe
field_31423
EXTERNAL_CHUNK_THRESHOLD
private static final int
k
CHUNK_NOT_PRESENT
field_31424
f_dxhmyvjp
field_31424
CHUNK_NOT_PRESENT
final RegionStorageInfo
l
info
field_49102
f_xepxlwml
storageKey
private final Path
m
path
field_48752
f_ueduioyw
path
private final FileChannel
n
file
field_20436
f_ramzmnqn
channel
channel
private final Path
o
externalFileDir
field_20657
f_bagqqhlx
directory
directory
final RegionFileVersion
p
version
field_20437
f_xggxxmgb
compressionFormat
outputChunkStreamVersion
private final ByteBuffer
q
header
field_20438
f_qpqrfiqu
header
header
private final IntBuffer
r
offsets
field_20439
f_sidnvqle
sectorData
sectorData
private final IntBuffer
s
timestamps
field_20440
f_becwjrwf
saveTimes
saveTimes
protected final RegionBitmap
b
usedSectors
field_20441
f_ewdhvwdr
sectors
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()
m_inxcvyaw()
getPath()
private Path
f(dih arg0)
getExternalChunkPath(ChunkPos arg0)
method_22413(class_1923 arg0)
m_isyqnhjt(C_ynrszrtu arg0)
getExternalChunkPath(ChunkPos chunkPos)
getExternalChunkPath(ChunkPos chunkPos)
public synchronized DataInputStream
a(dih arg0)
getChunkDataInputStream(ChunkPos arg0)
method_21873(class_1923 arg0)
m_jsumbmbn(C_ynrszrtu arg0)
getChunkInputStream(ChunkPos pos)
getChunkInputStream(ChunkPos pos)
private static int
c()
getTimestamp()
method_31739()
m_pliiokxw()
getEpochTimeSeconds()
getTimestamp()
private static boolean
a(byte arg0)
isExternalStreamChunk(byte arg0)
method_22407(byte arg0)
m_oodaxowl(byte arg0)
hasChunkStreamVersionId(byte flags)
hasChunkStreamVersionId(byte flags)
private static byte
b(byte arg0)
getExternalChunkVersion(byte arg0)
method_22412(byte arg0)
m_nmxbyxnr(byte arg0)
getChunkStreamVersionId(byte flags)
getChunkStreamVersionId(byte flags)
private DataInputStream
a(dih arg0, byte arg1, InputStream arg2)
createChunkInputStream(ChunkPos arg0, byte arg1, InputStream arg2)
method_22409(class_1923 arg0, byte arg1, InputStream arg2)
m_lyzbhxyo(C_ynrszrtu arg0, byte arg1, InputStream arg2)
decompress(ChunkPos pos, byte flags, InputStream stream)
createChunkInputStream(ChunkPos pos, byte versionId, InputStream input)
private DataInputStream
a(dih arg0, byte arg1)
createExternalChunkInputStream(ChunkPos arg0, byte arg1)
method_22408(class_1923 arg0, byte arg1)
m_naxlpaqf(C_ynrszrtu arg0, byte arg1)
getInputStream(ChunkPos pos, byte flags)
createExternalChunkInputStream(ChunkPos pos, byte versionId)
private static ByteArrayInputStream
a(ByteBuffer arg0, int arg1)
createStream(ByteBuffer arg0, int arg1)
method_21876(ByteBuffer arg0, int arg1)
m_bmulfhup(ByteBuffer arg0, int arg1)
getInputStream(ByteBuffer buffer, int length)
getInputStream(ByteBuffer buffer, int length)
private int
a(int arg0, int arg1)
packSectorOffset(int arg0, int arg1)
method_21872(int arg0, int arg1)
m_owsezyim(int arg0, int arg1)
packSectorData(int offset, int size)
packSectorData(int offset, int size)
private static int
a(int arg0)
getNumSectors(int arg0)
method_21871(int arg0)
m_hsrwnhct(int arg0)
getSize(int sectorData)
getSize(int sectorData)
private static int
b(int arg0)
getSectorNumber(int arg0)
method_21878(int arg0)
m_yzorumxc(int arg0)
getOffset(int sectorData)
getOffset(int sectorData)
private static int
c(int arg0)
sizeToSectors(int arg0)
method_21880(int arg0)
m_cdfttreh(int arg0)
getSectorCount(int byteCount)
getSectorCount(int byteCount)
public boolean
b(dih arg0)
doesChunkExist(ChunkPos arg0)
method_21879(class_1923 arg0)
m_tavymlvz(C_ynrszrtu arg0)
isChunkValid(ChunkPos pos)
isChunkValid(ChunkPos pos)
public DataOutputStream
c(dih arg0)
getChunkDataOutputStream(ChunkPos arg0)
method_21881(class_1923 arg0)
m_dzgvhamh(C_ynrszrtu arg0)
getChunkOutputStream(ChunkPos pos)
getChunkOutputStream(ChunkPos pos)
public void
b()
flush()
method_26981()
m_fcsdkuxp()
sync()
sync()
public void
d(dih arg0)
clear(ChunkPos arg0)
method_31740(class_1923 arg0)
m_xintzxzy(C_ynrszrtu arg0)
delete(ChunkPos pos)
clear(ChunkPos pos)
protected synchronized void
a(dih arg0, ByteBuffer arg1)
write(ChunkPos arg0, ByteBuffer arg1)
method_21874(class_1923 arg0, ByteBuffer arg1)
m_obaxgaxq(C_ynrszrtu arg0, ByteBuffer arg1)
writeChunk(ChunkPos pos, ByteBuffer buf)
writeChunk(ChunkPos pos, ByteBuffer buf)
private ByteBuffer
d()
createExternalStub()
method_22406()
m_fnnafhpi()
getHeaderBuf()
createHeaderBuf()
private RegionFile$CommitOp
a(Path arg0, ByteBuffer arg1)
writeToExternalFile(Path arg0, ByteBuffer arg1)
method_22410(Path arg0, ByteBuffer arg1)
m_bsyvgedc(Path arg0, ByteBuffer arg1)
writeSafely(Path path, ByteBuffer buf)
writeSafely(Path path, ByteBuffer buf)
private void
e()
writeHeader()
method_21870()
m_mzwibicr()
writeHeader()
writeHeader()
private int
g(dih arg0)
getOffset(ChunkPos arg0)
method_12419(class_1923 arg0)
m_abzgfeji(C_ynrszrtu arg0)
getSectorData(ChunkPos pos)
getSectorData(ChunkPos pos)
public boolean
e(dih arg0)
hasChunk(ChunkPos arg0)
method_12423(class_1923 arg0)
m_gcsotahz(C_ynrszrtu arg0)
hasChunk(ChunkPos pos)
hasChunk(ChunkPos pos)
private static int
h(dih arg0)
getOffsetIndex(ChunkPos arg0)
method_17909(class_1923 arg0)
m_cnrtwxio(C_ynrszrtu arg0)
getIndex(ChunkPos pos)
getIndex(ChunkPos pos)
public void
close()
close()
private void
f()
padToFullSector()
method_21877()
m_yxcvwlus()
fillLastSector()
fillLastSector()