void IPacketSerializable.Serialize(NetworkWrite bw) { bw.WriteVarInt(version); bw.WriteVarString(address); bw.Write(port); bw.WriteVarInt((uint)nextState); }
public async void SerializeAsync(Stream stream) { var length = (uint)data.Count + packetId.SizeofBytes(); using (var bw = new NetworkWrite(stream, Encoding.UTF8, true)) { bw.WriteVarInt(length); bw.WriteVarInt(packetId); bw.Flush(); } await stream.WriteAsync(data.Array, data.Offset, data.Count); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(entityID); bw.Write(entityUUID); bw.WriteVarInt(type); bw.Write(x); bw.Write(y); bw.Write(z); bw.Write(yaw); bw.Write(pitch); bw.Write(head); bw.Write(velocityX); bw.Write(velocityY); bw.Write(velocityZ); bw.Write(metaData); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(entityID); bw.Write(entityUUID); bw.Write(title); bw.Write(position, 0, 8); bw.Write(direction); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(entityID); bw.Write(type); bw.Write(x); bw.Write(y); bw.Write(z); }
public void Serialize(NetworkWrite bw) { bw.Write(chunkX); bw.Write(chunkZ); bw.Write(groundUpContinuous); bw.WriteVarInt(primaryBitMask); bw.WriteVarBytes(data); bw.WriteVarBytes(entities); }
public void Serialize(NetworkWrite bw) { bw.Write(x); bw.Write(y); bw.Write(z); bw.Write(yaw); bw.Write(pitch); bw.Write(flags); bw.WriteVarInt(teleportID); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(entityID); bw.Write(playerUUID); bw.Write(x); bw.Write(y); bw.Write(z); bw.Write(yaw); bw.Write(pitch); bw.Write(metaData); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(entityID); bw.Write(objectUUID); bw.Write(type); bw.Write(x); bw.Write(y); bw.Write(z); bw.Write(yaw); bw.Write(pitch); bw.Write(data); bw.Write(velocityX); bw.Write(velocityY); bw.Write(velocityZ); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(entityID); bw.WritePos(localtion); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(entityID); bw.Write(animation); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(action); bw.WriteVarString(tabID); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(action); bw.WriteVarInt(numberOfPlayers); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(keepAliveID); }
public void Serialize(NetworkWrite bw) { bw.Write(health); bw.WriteVarInt(food); bw.Write(foodSaturation); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(teleportID); }
public void Serialize(NetworkWrite bw) { bw.WriteVarInt(threshold); }
public static void Write(this NetworkWrite bw, Hand hand) { bw.WriteVarInt((uint)hand); }
public void Serialize(NetworkWrite bw) { bw.Write(experienceBar); bw.WriteVarInt(level); bw.WriteVarInt(totalExperience); }