net.minecraft.world.level.chunk.storage

public class RegionFile

implements AutoCloseable

cgy
net.minecraft.world.level.chunk.storage.RegionFile
net.minecraft.class_2861
net.minecraft.world.storage.RegionFile
net.minecraft.world.chunk.storage.RegionFile
net.minecraft.server.v1_16_R3.RegionFile

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
b
LOGGER
field_20434
LOGGER
field_227122_a_
private static final ByteBuffer
c
PADDING_BUFFER
field_20435
ZERO
field_227123_b_
private final FileChannel
d
file
field_20436
channel
field_76719_c
dataFile
private final Path
e
externalFileDir
field_20657
directory
field_227124_d_
private final RegionFileVersion
f
version
field_20437
outputChunkStreamVersion
field_227125_e_
private final ByteBuffer
g
header
field_20438
header
field_227126_f_
private final IntBuffer
h
offsets
field_20439
sectorData
field_76716_d
private final IntBuffer
i
timestamps
field_20440
saveTimes
field_227127_h_
protected final RegionBitmap
a
usedSectors
field_20441
sectors
field_227128_i_
freeSectors

Constructor summary

ModifierConstructor
public (File file, File directory, boolean dsync)
public (Path file, Path directory, RegionFileVersion outputChunkStreamVersion, boolean dsync)

Method summary

Modifier and TypeMethod
private Path
e(brd arg0)
getExternalChunkPath(ChunkPos arg0)
method_22413(class_1923 arg0)
getExternalChunkPath(ChunkPos chunkPos)
func_227145_e_(ChunkPos arg0)
public synchronized DataInputStream
a(brd arg0)
getChunkDataInputStream(ChunkPos arg0)
method_21873(class_1923 arg0)
getChunkInputStream(ChunkPos pos)
func_222666_a(ChunkPos arg0)
private static boolean
a(byte arg0)
isExternalStreamChunk(byte arg0)
method_22407(byte arg0)
hasChunkStreamVersionId(byte arg0)
func_227130_a_(byte arg0)
private static byte
b(byte arg0)
getExternalChunkVersion(byte arg0)
method_22412(byte arg0)
getChunkStreamVersionId(byte arg0)
func_227141_b_(byte arg0)
private DataInputStream
a(brd arg0, byte arg1, InputStream arg2)
createChunkInputStream(ChunkPos arg0, byte arg1, InputStream arg2)
method_22409(class_1923 arg0, byte arg1, InputStream arg2)
method_22409(ChunkPos arg0, byte arg1, InputStream arg2)
func_227134_a_(ChunkPos arg0, byte arg1, InputStream arg2)
private DataInputStream
a(brd arg0, byte arg1)
createExternalChunkInputStream(ChunkPos arg0, byte arg1)
method_22408(class_1923 arg0, byte arg1)
method_22408(ChunkPos arg0, byte arg1)
func_227133_a_(ChunkPos arg0, byte arg1)
private static ByteArrayInputStream
a(ByteBuffer arg0, int arg1)
createStream(ByteBuffer arg0, int arg1)
method_21876(ByteBuffer arg0, int arg1)
getInputStream(ByteBuffer buffer, int length)
func_227137_a_(ByteBuffer arg0, int arg1)
private int
a(int arg0, int arg1)
packSectorOffset(int arg0, int arg1)
method_21872(int arg0, int arg1)
packSectorData(int offset, int size)
func_227132_a_(int arg0, int arg1)
private static int
a(int arg0)
getNumSectors(int arg0)
method_21871(int arg0)
getSize(int sectorData)
func_227131_a_(int arg0)
private static int
b(int arg0)
getSectorNumber(int arg0)
method_21878(int arg0)
getOffset(int sectorData)
func_227142_b_(int arg0)
private static int
c(int arg0)
sizeToSectors(int arg0)
method_21880(int arg0)
getSectorCount(int byteCount)
func_227144_c_(int arg0)
public boolean
b(brd arg0)
doesChunkExist(ChunkPos arg0)
method_21879(class_1923 arg0)
isChunkValid(ChunkPos pos)
func_222662_b(ChunkPos arg0)
public DataOutputStream
c(brd arg0)
getChunkDataOutputStream(ChunkPos arg0)
method_21881(class_1923 arg0)
getChunkOutputStream(ChunkPos pos)
func_222661_c(ChunkPos arg0)
public void
a()
flush()
method_26981()
method_26981()
func_235985_a_()
protected synchronized void
a(brd arg0, ByteBuffer arg1)
write(ChunkPos arg0, ByteBuffer arg1)
method_21874(class_1923 arg0, ByteBuffer arg1)
writeChunk(ChunkPos pos, ByteBuffer arg1)
func_227135_a_(ChunkPos arg0, ByteBuffer arg1)
private ByteBuffer
b()
createExternalStub()
method_22406()
method_22406()
func_227129_a_()
private RegionFile$CommitOp
a(Path arg0, ByteBuffer arg1)
writeToExternalFile(Path arg0, ByteBuffer arg1)
method_22410(Path arg0, ByteBuffer arg1)
writeSafely(Path arg0, ByteBuffer arg1)
func_227138_a_(Path arg0, ByteBuffer arg1)
private void
c()
writeHeader()
method_21870()
writeHeader()
func_227140_b_()
private int
f(brd arg0)
getOffset(ChunkPos arg0)
method_12419(class_1923 arg0)
getSectorData(ChunkPos pos)
func_222660_e(ChunkPos arg0)
getOffset(ChunkCoordIntPair arg0)
public boolean
d(brd arg0)
hasChunk(ChunkPos arg0)
method_12423(class_1923 arg0)
hasChunk(ChunkPos pos)
func_222667_d(ChunkPos arg0)
chunkExists(ChunkCoordIntPair arg0)
private static int
g(brd arg0)
getOffsetIndex(ChunkPos arg0)
method_17909(class_1923 arg0)
getIndex(ChunkPos pos)
func_222668_f(ChunkPos arg0)
public void
close()
close()
close()
close()
close()
close()
private void
d()
padToFullSector()
method_21877()
fillLastSector()
func_227143_c_()