resent-1.8/Resent-main/sp-server/src_aux/RegionFileChunkBuffer.java
ThisIsALegitUsername 20907f090c import resent source
2022-12-27 20:54:38 +00:00

23 lines
527 B
Java

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);
}
}