forked from GlowstoneMC/Glowstone-Legacy
/
CompressedChunkMessage.java
52 lines (41 loc) · 1.06 KB
/
CompressedChunkMessage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package net.glowstone.msg;
public final class CompressedChunkMessage extends Message {
private final int x, z;
private final int y;
private final int width, height, depth;
private final byte[] data;
public CompressedChunkMessage(int x, int z, int y, int width, int height, int depth, byte[] data) {
this.x = x;
this.z = z;
this.y = y;
this.width = width;
this.height = height;
this.depth = depth;
this.data = data;
}
public int getX() {
return x;
}
public int getZ() {
return z;
}
public int getY() {
return y;
}
public int getWidth() {
return width;
}
public int getHeight() {
return height;
}
public int getDepth() {
return depth;
}
public byte[] getData() {
return data;
}
@Override
public String toString() {
return "CompressedChunkMessage{x=" + x + ",y=" + y + ",z=" + z + ",width=" + width + ",height=" + height + ",depth=" + depth + ",data=" + depth + "}";
}
}