コード例 #1
0
 // Referenced classes of package net.minecraft.src:
 //            Packet, NetHandler
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     strafeMovement = datainputstream.ReadFloat();
     fowardMovement = datainputstream.ReadFloat();
     pitchRotation  = datainputstream.ReadFloat();
     yawRotation    = datainputstream.ReadFloat();
     isSneaking     = datainputstream.ReadBoolean();
     isInJump       = datainputstream.ReadBoolean();
 }
コード例 #2
0
        /// <exception cref="System.IO.IOException"/>
        public override void ReadPacketData(java.io.DataInputStream datainputstream)
        {
            window_Id     = datainputstream.ReadByte();
            inventorySlot = datainputstream.ReadShort();
            mouseClick    = datainputstream.ReadByte();
            action        = datainputstream.ReadShort();
            field_27039_f = datainputstream.ReadBoolean();
            short word0 = datainputstream.ReadShort();

            if (word0 >= 0)
            {
                byte  byte0 = datainputstream.ReadByte();
                short word1 = datainputstream.ReadShort();
                itemStack = new net.minecraft.src.ItemStack(word0, byte0, word1);
            }
            else
            {
                itemStack = null;
            }
        }