Dlete UseBedPacket

This commit is contained in:
Paul Heidenreich 2019-04-28 12:54:20 +02:00
parent 31e5df1c5f
commit f1365868c1
2 changed files with 0 additions and 45 deletions

View file

@ -422,7 +422,6 @@ public class MinecraftProtocol extends PacketProtocol {
this.registerIncoming(0x35, ServerPlayerPositionRotationPacket.class);
this.registerIncoming(0x36, ServerUnlockRecipesPacket.class);
this.registerIncoming(0x37, ServerEntityDestroyPacket.class);
// DELETED this.registerIncoming(0x33, ServerPlayerUseBedPacket.class);
this.registerIncoming(0x38, ServerEntityRemoveEffectPacket.class);
this.registerIncoming(0x39, ServerResourcePackSendPacket.class);
this.registerIncoming(0x3A, ServerRespawnPacket.class);
@ -612,7 +611,6 @@ public class MinecraftProtocol extends PacketProtocol {
this.registerOutgoing(0x35, ServerPlayerPositionRotationPacket.class);
this.registerOutgoing(0x36, ServerUnlockRecipesPacket.class);
this.registerOutgoing(0x37, ServerEntityDestroyPacket.class);
// DELETED this.registerOutgoing(0x33, ServerPlayerUseBedPacket.class);
this.registerOutgoing(0x38, ServerEntityRemoveEffectPacket.class);
this.registerOutgoing(0x39, ServerResourcePackSendPacket.class);
this.registerOutgoing(0x3A, ServerRespawnPacket.class);

View file

@ -1,43 +0,0 @@
package com.github.steveice10.mc.protocol.packet.ingame.server.entity.player;
import com.github.steveice10.mc.protocol.data.game.entity.metadata.Position;
import com.github.steveice10.mc.protocol.packet.MinecraftPacket;
import com.github.steveice10.mc.protocol.util.NetUtil;
import com.github.steveice10.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetOutput;
import java.io.IOException;
public class ServerPlayerUseBedPacket extends MinecraftPacket {
private int entityId;
private Position position;
@SuppressWarnings("unused")
private ServerPlayerUseBedPacket() {
}
public ServerPlayerUseBedPacket(int entityId, Position position) {
this.entityId = entityId;
this.position = position;
}
public int getEntityId() {
return this.entityId;
}
public Position getPosition() {
return this.position;
}
@Override
public void read(NetInput in) throws IOException {
this.entityId = in.readVarInt();
this.position = NetUtil.readPosition(in);
}
@Override
public void write(NetOutput out) throws IOException {
out.writeVarInt(this.entityId);
NetUtil.writePosition(out, this.position);
}
}