Beispiel #1
0
 public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     stream.WriteInt64(WorldAge);
     stream.WriteInt64(TimeOfDay);
     return mode;
 }
Beispiel #2
0
 public void WritePacket(MinecraftStream stream)
 {
     stream.WriteUInt8(Id);
     stream.WriteInt64(WorldAge);
     stream.WriteInt64(TimeOfDay);
 }
Beispiel #3
0
 public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     stream.WriteInt32(EntityId);
     stream.WriteInt32(Properties.Length);
     for (int i = 0; i < Properties.Length; i++)
     {
         stream.WriteString(Properties[i].Key);
         stream.WriteDouble(Properties[i].Value);
         stream.WriteInt16((short)Properties[i].UnknownList.Length);
         for (int j = 0; j < Properties[i].UnknownList.Length; j++)
         {
             stream.WriteInt64(Properties[i].UnknownList[j].UnknownMSB);
             stream.WriteInt64(Properties[i].UnknownList[j].UnknownLSB);
             stream.WriteDouble(Properties[i].UnknownList[j].UnknownDouble);
             stream.WriteUInt8(Properties[i].UnknownList[j].UnknownByte);
         }
     }
     return mode;
 }
Beispiel #4
0
 public void WritePacket(MinecraftStream stream)
 {
     stream.WriteUInt8(Id);
     stream.WriteInt32(EntityId);
     stream.WriteInt32(Properties.Length);
     for (int i = 0; i < Properties.Length; i++)
     {
         stream.WriteString(Properties[i].Key);
         stream.WriteDouble(Properties[i].Value);
         stream.WriteInt16((short)Properties[i].UnknownList.Length);
         for (int j = 0; j < Properties[i].UnknownList.Length; j++)
         {
             stream.WriteInt64(Properties[i].UnknownList[j].UnknownMSB);
             stream.WriteInt64(Properties[i].UnknownList[j].UnknownLSB);
             stream.WriteDouble(Properties[i].UnknownList[j].UnknownDouble);
             stream.WriteUInt8(Properties[i].UnknownList[j].UnknownByte);
         }
     }
 }