Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
lDEVinux
GitHub Repository: lDEVinux/eaglercraft
Path: blob/main/sp-server/src_aux/RegionFileChunkBuffer.java
8641 views
1
package net.minecraft.src;
2
3
import java.io.ByteArrayOutputStream;
4
import java.io.IOException;
5
6
class RegionFileChunkBuffer extends ByteArrayOutputStream {
7
private int chunkX;
8
private int chunkZ;
9
10
final RegionFile regionFile;
11
12
public RegionFileChunkBuffer(RegionFile par1RegionFile, int par2, int par3) {
13
super(8096);
14
this.regionFile = par1RegionFile;
15
this.chunkX = par2;
16
this.chunkZ = par3;
17
}
18
19
public void close() throws IOException {
20
this.regionFile.write(this.chunkX, this.chunkZ, this.buf, this.count);
21
}
22
}
23
24