Esempio n. 1
0
 @Override
 public void readFromClientData(ProtocolSupportPacketDataSerializer serializer)
     throws IOException {
   serializer.readVarInt();
   hostname = serializer.readString();
   port = serializer.readUnsignedShort();
   nextState = serializer.readVarInt();
 }
Esempio 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();
 }
Esempio n. 3
0
 @Override
 public void readFromClientData(ProtocolSupportPacketDataSerializer serializer) {
   entityId = serializer.readInt();
   action = Action.values()[serializer.readByte()];
 }
 @Override
 public void readFromClientData(ProtocolSupportPacketDataSerializer serializer)
     throws IOException {
   slot = serializer.readShort();
   itemstack = serializer.readItemStack();
 }