mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Update CraftBukkit to Minecraft 1.7.2
This commit is contained in:
1 parent
ff8b70fbb7
commit
2726696652
349 files changed
+14339
-11287
No files matched your search
@@ -0,0 +1,48 @@
|
||||
package net.minecraft.server;
|
||||
|
||||
public class PacketPlayOutBlockChange extends Packet {
|
||||
|
||||
private int a;
|
||||
private int b;
|
||||
private int c;
|
||||
public Block block; // CraftBukkit - public
|
||||
public int data; // CraftBukkit - public
|
||||
|
||||
public PacketPlayOutBlockChange() {}
|
||||
|
||||
public PacketPlayOutBlockChange(int i, int j, int k, World world) {
|
||||
this.a = i;
|
||||
this.b = j;
|
||||
this.c = k;
|
||||
this.block = world.getType(i, j, k);
|
||||
this.data = world.getData(i, j, k);
|
||||
}
|
||||
|
||||
public void a(PacketDataSerializer packetdataserializer) {
|
||||
this.a = packetdataserializer.readInt();
|
||||
this.b = packetdataserializer.readUnsignedByte();
|
||||
this.c = packetdataserializer.readInt();
|
||||
this.block = Block.e(packetdataserializer.a());
|
||||
this.data = packetdataserializer.readUnsignedByte();
|
||||
}
|
||||
|
||||
public void b(PacketDataSerializer packetdataserializer) {
|
||||
packetdataserializer.writeInt(this.a);
|
||||
packetdataserializer.writeByte(this.b);
|
||||
packetdataserializer.writeInt(this.c);
|
||||
packetdataserializer.b(Block.b(this.block));
|
||||
packetdataserializer.writeByte(this.data);
|
||||
}
|
||||
|
||||
public void a(PacketPlayOutListener packetplayoutlistener) {
|
||||
packetplayoutlistener.a(this);
|
||||
}
|
||||
|
||||
public String b() {
|
||||
return String.format("type=%d, data=%d, x=%d, y=%d, z=%d", new Object[] { Integer.valueOf(Block.b(this.block)), Integer.valueOf(this.data), Integer.valueOf(this.a), Integer.valueOf(this.b), Integer.valueOf(this.c)});
|
||||
}
|
||||
|
||||
public void handle(PacketListener packetlistener) {
|
||||
this.a((PacketPlayOutListener) packetlistener);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user