net.minecraft.world.storage

public class RegionFile

implements AutoCloseable

end
net.minecraft.world.level.chunk.storage.RegionFile
net.minecraft.class_2861
net.minecraft.world.storage.RegionFile
net.minecraft.unmapped.C_kykyawqb
net.minecraft.world.storage.RegionFile
net.minecraft.src.C_2166_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
c
LOGGER
field_20434
LOGGER
f_mvitofjf
LOGGER
f_63619_
private static final int
d
SECTOR_BYTES
field_31418
field_31418
f_ecfxbygp
SECTOR_BYTE_LIMIT
f_156605_
protected static final int
a
SECTOR_INTS
field_31417
SECTOR_DATA_LIMIT
f_srhyfbtq
SECTOR_INT_LIMIT
f_156604_
private static final int
e
CHUNK_HEADER_SIZE
field_31419
field_31419
f_torejiiv
CHUNK_HEADER_SIZE
f_156606_
private static final int
f
HEADER_OFFSET
field_31420
field_31420
f_pebydogu
HEADER_OFFSET
f_156607_
private static final ByteBuffer
g
PADDING_BUFFER
field_20435
ZERO
f_mmilontz
PADDING_BUFFER
f_63620_
private static final String
h
EXTERNAL_FILE_EXTENSION
field_31421
FILE_EXTENSION
f_knlsaycj
EXTERNAL_FILE_EXTENSION
f_156608_
private static final int
i
EXTERNAL_STREAM_FLAG
field_31422
field_31422
f_uzbltvoa
EXTERNAL_STREAM_FLAG
f_156609_
private static final int
j
EXTERNAL_CHUNK_THRESHOLD
field_31423
field_31423
f_egrpyabe
EXTERNAL_CHUNK_THRESHOLD
f_156610_
private static final int
k
CHUNK_NOT_PRESENT
field_31424
field_31424
f_dxhmyvjp
CHUNK_NOT_PRESENT
f_156611_
final StorageKey
l
info
field_49102
storageKey
f_xepxlwml
f_315685_
private final Path
m
path
field_48752
path
f_ueduioyw
f_315672_
private final FileChannel
n
file
field_20436
channel
f_ramzmnqn
channel
f_63621_
private final Path
o
externalFileDir
field_20657
directory
f_bagqqhlx
directory
f_63622_
final ChunkCompressionFormat
p
version
field_20437
compressionFormat
f_xggxxmgb
outputChunkStreamVersion
f_63623_
private final ByteBuffer
q
header
field_20438
header
f_qpqrfiqu
header
f_63624_
private final IntBuffer
r
offsets
field_20439
sectorData
f_sidnvqle
sectorData
f_63625_
private final IntBuffer
s
timestamps
field_20440
saveTimes
f_becwjrwf
saveTimes
f_63626_
protected final SectorMap
b
usedSectors
field_20441
sectors
f_ewdhvwdr
sectors
f_63618_

Constructor summary

ModifierConstructor
public (StorageKey storageKey, Path directory, Path path, boolean dsync)
public (StorageKey storageKey, Path path, Path directory, ChunkCompressionFormat compressionFormat, boolean dsync)

Method summary

Modifier and TypeMethod
public Path
a()
getPath()
method_56566()
getPath()
m_inxcvyaw()
m_321600_()
private Path
f(dqv arg0)
getExternalChunkPath(ChunkPos arg0)
method_22413(class_1923 arg0)
getExternalChunkPath(ChunkPos chunkPos)
m_isyqnhjt(C_ynrszrtu arg0)
getExternalChunkPath(ChunkPos chunkPos)
m_63684_(C_1560_ arg0)
public synchronized DataInputStream
a(dqv arg0)
getChunkDataInputStream(ChunkPos arg0)
method_21873(class_1923 arg0)
getChunkInputStream(ChunkPos pos)
m_jsumbmbn(C_ynrszrtu arg0)
getChunkInputStream(ChunkPos pos)
m_63645_(C_1560_ arg0)
private static int
c()
getTimestamp()
method_31739()
getEpochTimeSeconds()
m_pliiokxw()
getTimestamp()
m_156612_()
private static boolean
a(byte o)
isExternalStreamChunk(byte arg0)
method_22407(byte arg0)
hasChunkStreamVersionId(byte flags)
m_oodaxowl(byte arg0)
hasChunkStreamVersionId(byte flags)
m_63638_(byte p_63639_)
private static byte
b(byte o)
getExternalChunkVersion(byte arg0)
method_22412(byte arg0)
getChunkStreamVersionId(byte flags)
m_nmxbyxnr(byte arg0)
getChunkStreamVersionId(byte flags)
m_63669_(byte p_63670_)
private DataInputStream
a(dqv o, byte o, 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)
m_lyzbhxyo(C_ynrszrtu arg0, byte arg1, InputStream arg2)
createChunkInputStream(ChunkPos pos, byte versionId, InputStream input)
m_63650_(C_1560_ p_63652_, byte p_63653_, InputStream arg2)
private DataInputStream
a(dqv o, byte arg1)
createExternalChunkInputStream(ChunkPos arg0, byte arg1)
method_22408(class_1923 arg0, byte arg1)
getInputStream(ChunkPos pos, byte flags)
m_naxlpaqf(C_ynrszrtu arg0, byte arg1)
createExternalChunkInputStream(ChunkPos pos, byte versionId)
m_63647_(C_1560_ p_63649_, byte arg1)
private static ByteArrayInputStream
a(ByteBuffer o, int o)
createStream(ByteBuffer arg0, int arg1)
method_21876(ByteBuffer arg0, int arg1)
getInputStream(ByteBuffer buffer, int length)
m_bmulfhup(ByteBuffer arg0, int arg1)
getInputStream(ByteBuffer buffer, int length)
m_63659_(ByteBuffer p_63660_, int p_63661_)
private int
a(int o, int arg1)
packSectorOffset(int arg0, int arg1)
method_21872(int arg0, int arg1)
packSectorData(int offset, int size)
m_owsezyim(int arg0, int arg1)
packSectorData(int offset, int size)
m_63642_(int p_63644_, int arg1)
private static int
a(int o)
getNumSectors(int arg0)
method_21871(int arg0)
getSize(int sectorData)
m_hsrwnhct(int arg0)
getSize(int sectorData)
m_63640_(int p_63641_)
private static int
b(int o)
getSectorNumber(int arg0)
method_21878(int arg0)
getOffset(int sectorData)
m_yzorumxc(int arg0)
getOffset(int sectorData)
m_63671_(int p_63672_)
private static int
c(int o)
sizeToSectors(int arg0)
method_21880(int arg0)
getSectorCount(int byteCount)
m_cdfttreh(int arg0)
getSectorCount(int byteCount)
m_63676_(int p_63677_)
public boolean
b(dqv arg0)
doesChunkExist(ChunkPos arg0)
method_21879(class_1923 arg0)
isChunkValid(ChunkPos pos)
m_tavymlvz(C_ynrszrtu arg0)
isChunkValid(ChunkPos pos)
m_63673_(C_1560_ arg0)
public DataOutputStream
c(dqv arg0)
getChunkDataOutputStream(ChunkPos arg0)
method_21881(class_1923 arg0)
getChunkOutputStream(ChunkPos pos)
m_dzgvhamh(C_ynrszrtu arg0)
getChunkOutputStream(ChunkPos pos)
m_63678_(C_1560_ arg0)
public void
b()
flush()
method_26981()
sync()
m_fcsdkuxp()
sync()
m_63637_()
public void
d(dqv arg0)
clear(ChunkPos arg0)
method_31740(class_1923 arg0)
delete(ChunkPos pos)
m_xintzxzy(C_ynrszrtu arg0)
clear(ChunkPos pos)
m_156613_(C_1560_ arg0)
protected synchronized void
a(dqv o, ByteBuffer arg1)
write(ChunkPos arg0, ByteBuffer arg1)
method_21874(class_1923 arg0, ByteBuffer arg1)
writeChunk(ChunkPos pos, ByteBuffer buf)
m_obaxgaxq(C_ynrszrtu arg0, ByteBuffer arg1)
writeChunk(ChunkPos pos, ByteBuffer buf)
m_63654_(C_1560_ p_63656_, ByteBuffer arg1)
private ByteBuffer
d()
createExternalStub()
method_22406()
getHeaderBuf()
m_fnnafhpi()
createHeaderBuf()
m_63668_()
private RegionFile$OutputAction
a(Path o, ByteBuffer arg1)
writeToExternalFile(Path arg0, ByteBuffer arg1)
method_22410(Path arg0, ByteBuffer arg1)
writeSafely(Path path, ByteBuffer buf)
m_bsyvgedc(Path arg0, ByteBuffer arg1)
writeSafely(Path path, ByteBuffer buf)
m_63662_(Path p_63664_, ByteBuffer arg1)
private void
e()
writeHeader()
method_21870()
writeHeader()
m_mzwibicr()
writeHeader()
m_63675_()
private int
g(dqv arg0)
getOffset(ChunkPos arg0)
method_12419(class_1923 arg0)
getSectorData(ChunkPos pos)
m_abzgfeji(C_ynrszrtu arg0)
getSectorData(ChunkPos pos)
m_63686_(C_1560_ arg0)
public boolean
e(dqv arg0)
hasChunk(ChunkPos arg0)
method_12423(class_1923 arg0)
hasChunk(ChunkPos pos)
m_gcsotahz(C_ynrszrtu arg0)
hasChunk(ChunkPos pos)
m_63682_(C_1560_ arg0)
private static int
h(dqv o)
getOffsetIndex(ChunkPos arg0)
method_17909(class_1923 arg0)
getIndex(ChunkPos pos)
m_cnrtwxio(C_ynrszrtu arg0)
getIndex(ChunkPos pos)
m_63688_(C_1560_ p_63689_)
public void
close()
close()
close()
private void
f()
padToFullSector()
method_21877()
fillLastSector()
m_yxcvwlus()
fillLastSector()
m_63681_()