Exemplo n.º 1
0
 @Override
 public void readFromClientData(ProtocolSupportPacketDataSerializer serializer)
     throws IOException {
   serializer.readVarInt();
   hostname = serializer.readString();
   port = serializer.readUnsignedShort();
   nextState = serializer.readVarInt();
 }
Exemplo n.º 2
0
 @Override
 public void readFromClientData(ProtocolSupportPacketDataSerializer serializer)
     throws IOException {
   x = serializer.readDouble();
   y = serializer.readDouble();
   z = serializer.readDouble();
   yaw = serializer.readFloat();
   pitch = serializer.readFloat();
 }
Exemplo n.º 3
0
 @Override
 public void readFromClientData(ProtocolSupportPacketDataSerializer serializer) {
   entityId = serializer.readInt();
   action = Action.values()[serializer.readByte()];
 }
Exemplo n.º 4
0
 @Override
 public void readFromClientData(ProtocolSupportPacketDataSerializer serializer)
     throws IOException {
   slot = serializer.readShort();
   itemstack = serializer.readItemStack();
 }