37 lines
959 B
Java
37 lines
959 B
Java
package net.minecraft.server;
|
|
|
|
import java.io.IOException;
|
|
|
|
public class PacketPlayOutBed implements Packet<PacketListenerPlayOut> {
|
|
|
|
private int a;
|
|
private BlockPosition b;
|
|
|
|
public PacketPlayOutBed() {}
|
|
|
|
public PacketPlayOutBed(EntityHuman entityhuman, BlockPosition blockposition) {
|
|
this.a = entityhuman.getId();
|
|
this.b = blockposition;
|
|
}
|
|
|
|
public void a(PacketDataSerializer packetdataserializer) throws IOException {
|
|
this.a = packetdataserializer.g();
|
|
this.b = packetdataserializer.e();
|
|
}
|
|
|
|
public void b(PacketDataSerializer packetdataserializer) throws IOException {
|
|
packetdataserializer.d(this.a);
|
|
packetdataserializer.a(this.b);
|
|
}
|
|
|
|
public void a(PacketListenerPlayOut packetlistenerplayout) {
|
|
packetlistenerplayout.a(this);
|
|
}
|
|
// Akarin start
|
|
@Override
|
|
public boolean canDispatchImmediately() {
|
|
return true;
|
|
}
|
|
// Akarin end
|
|
}
|