sp-server

This commit is contained in:
catfoolyou
2025-02-06 18:02:51 -05:00
parent 353c5d7165
commit f4e3cbe2fe
1030 changed files with 123381 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
package net.minecraft.src;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
class RegionFileChunkBuffer extends ByteArrayOutputStream {
private int chunkX;
private int chunkZ;
final RegionFile regionFile;
public RegionFileChunkBuffer(RegionFile par1RegionFile, int par2, int par3) {
super(8096);
this.regionFile = par1RegionFile;
this.chunkX = par2;
this.chunkZ = par3;
}
public void close() throws IOException {
this.regionFile.write(this.chunkX, this.chunkZ, this.buf, this.count);
}
}