forked from mckuhei/1.3.2_128bit
Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
|
0be652573c | 1 year ago |
|
3662aced93 | 1 year ago |
|
68ad14ac83 | 2 years ago |
|
18c2d4f399 | 2 years ago |
|
b603f86c1c | 2 years ago |
@ -1,3 +1,5 @@
|
|||||||
# Minecraft 1.3.2 128bit mod
|

|
||||||
|
|
||||||
Incompleted yet.
|
Please made it you self :)
|
||||||
|
|
||||||
|
# End of support
|
||||||
|
@ -1,101 +0,0 @@
|
|||||||
package net.minecraft.src;
|
|
||||||
|
|
||||||
import java.io.DataInputStream;
|
|
||||||
import java.io.DataOutputStream;
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import org.mcmodule.math.BigInteger;
|
|
||||||
|
|
||||||
public class Packet57ExtraChunk extends Packet {
|
|
||||||
|
|
||||||
private byte[] blockLSB, blockMSB, metadata, skyLight, blockLight;
|
|
||||||
private BigInteger x, z;
|
|
||||||
private int y, blockRefCnt;
|
|
||||||
|
|
||||||
public Packet57ExtraChunk() {}
|
|
||||||
|
|
||||||
public Packet57ExtraChunk(BigInteger x, int y, BigInteger z, ExtendedBlockStorage storage) {
|
|
||||||
this.x = x;
|
|
||||||
this.y = y;
|
|
||||||
this.z = z;
|
|
||||||
this.blockLSB = storage.getBlockLSBArray();
|
|
||||||
this.blockMSB = storage.getBlockMSBArray().data;
|
|
||||||
this.metadata = storage.getMetadataArray().data;
|
|
||||||
this.skyLight = storage.getSkylightArray().data;
|
|
||||||
this.blockLight = storage.getBlocklightArray().data;
|
|
||||||
this.blockRefCnt = storage.getBlockRefCnt();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void readPacketData(DataInputStream var1) throws IOException {
|
|
||||||
this.x = readBigInteger(var1);
|
|
||||||
this.y = var1.readInt();
|
|
||||||
this.z = readBigInteger(var1);
|
|
||||||
this.blockLSB = readBytesFromStream(var1);
|
|
||||||
this.blockMSB = readBytesFromStream(var1);
|
|
||||||
this.metadata = readBytesFromStream(var1);
|
|
||||||
this.skyLight = readBytesFromStream(var1);
|
|
||||||
this.blockLight = readBytesFromStream(var1);
|
|
||||||
this.blockRefCnt = var1.readInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void writePacketData(DataOutputStream var1) throws IOException {
|
|
||||||
writeBigInteger(var1, this.x);
|
|
||||||
var1.writeInt(this.y);
|
|
||||||
writeBigInteger(var1, this.z);
|
|
||||||
writeByteArray(var1, this.blockLSB);
|
|
||||||
writeByteArray(var1, this.blockMSB);
|
|
||||||
writeByteArray(var1, this.metadata);
|
|
||||||
writeByteArray(var1, this.skyLight);
|
|
||||||
writeByteArray(var1, this.blockLight);
|
|
||||||
var1.writeInt(blockRefCnt);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void processPacket(NetHandler var1) {
|
|
||||||
var1.handleAddExtraChunk(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int getPacketSize() {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] getBlockLSB() {
|
|
||||||
return blockLSB;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] getBlockMSB() {
|
|
||||||
return blockMSB;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] getMetadata() {
|
|
||||||
return metadata;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] getSkyLight() {
|
|
||||||
return skyLight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] getBlockLight() {
|
|
||||||
return blockLight;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigInteger getX() {
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BigInteger getZ() {
|
|
||||||
return z;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getY() {
|
|
||||||
return y;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getBlockRefCnt() {
|
|
||||||
return blockRefCnt;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue