Пример #1
0
 public void WritePacket(IMcStream stream)
 {
     stream.WriteInt8(WindowID);
     stream.WriteInt16(SlotIndex);
     stream.WriteBoolean(RightClick);
     stream.WriteInt16(TransactionID);
     stream.WriteBoolean(Shift);
     stream.WriteInt16(ItemId);
     if (ItemId != -1)
     {
         stream.WriteInt8(Count);
         stream.WriteInt16(Metadata);
     }
 }
Пример #2
0
 public void WritePacket(IMcStream stream)
 {
     stream.WriteInt32(EntityId);
     stream.WriteBoolean(true);             // Unknown
     stream.WriteInt32(X);
     stream.WriteInt32(Y);
     stream.WriteInt32(Z);
 }
Пример #3
0
 public void WritePacket(IMcStream stream)
 {
     stream.WriteDouble(X);
     stream.WriteDouble(Y);
     stream.WriteDouble(Stance);
     stream.WriteDouble(Z);
     stream.WriteBoolean(OnGround);
 }
Пример #4
0
 public void WritePacket(IMcStream stream)
 {
     stream.WriteInt32(EntityId);
     stream.WriteBoolean(InBed);
     stream.WriteInt32(X);
     stream.WriteInt8(Y);
     stream.WriteInt32(Z);
 }
Пример #5
0
 public void WritePacket(IMcStream stream)
 {
     stream.WriteInt32(X);
     stream.WriteInt32(Z);
     stream.WriteBoolean(Load);
 }
Пример #6
0
 public void WritePacket(IMcStream stream)
 {
     stream.WriteBoolean(OnGround);
 }
Пример #7
0
 public void WritePacket(IMcStream stream)
 {
     stream.WriteSingle(Yaw);
     stream.WriteSingle(Pitch);
     stream.WriteBoolean(OnGround);
 }
 public void WritePacket(IMcStream stream)
 {
     stream.WriteInt8(WindowID);
     stream.WriteInt16(TransactionID);
     stream.WriteBoolean(Accepted);
 }
Пример #9
0
 public void WritePacket(IMcStream stream)
 {
     stream.WriteInt32(UserID);
     stream.WriteInt32(TargetID);
     stream.WriteBoolean(LeftClick);
 }