Example #1
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteFloat(strafeMovement);
     dataoutputstream.WriteFloat(fowardMovement);
     dataoutputstream.WriteFloat(pitchRotation);
     dataoutputstream.WriteFloat(yawRotation);
     dataoutputstream.WriteBoolean(isSneaking);
     dataoutputstream.WriteBoolean(isInJump);
 }
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteByte(window_Id);
     dataoutputstream.WriteShort(inventorySlot);
     dataoutputstream.WriteByte(mouseClick);
     dataoutputstream.WriteShort(action);
     dataoutputstream.WriteBoolean(field_27039_f);
     if (itemStack == null)
     {
         dataoutputstream.WriteShort(-1);
     }
     else
     {
         dataoutputstream.WriteShort(itemStack.itemID);
         dataoutputstream.WriteByte(itemStack.stackSize);
         dataoutputstream.WriteShort(itemStack.GetItemDamage());
     }
 }