Ejemplo n.º 1
0
 public NetworkMode WritePacket(MinecraftStream stream, NetworkMode mode, PacketDirection direction)
 {
     stream.WriteInt64(WorldAge);
     stream.WriteInt64(TimeOfDay);
     return mode;
 }
Ejemplo n.º 2
0
 public void WritePacket(MinecraftStream stream)
 {
     stream.WriteUInt8(Id);
     stream.WriteInt64(WorldAge);
     stream.WriteInt64(TimeOfDay);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
         }
     }
 }