/// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     base.ReadPacketData(datainputstream);
     xPosition = datainputstream.ReadByte();
     yPosition = datainputstream.ReadByte();
     zPosition = datainputstream.ReadByte();
 }
Example #2
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     windowId      = datainputstream.ReadByte();
     inventoryType = datainputstream.ReadByte();
     windowTitle   = datainputstream.ReadUTF();
     slotsCount    = datainputstream.ReadByte();
 }
Example #3
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     EntityID    = datainputstream.ReadInt();
     UnknownByte = datainputstream.ReadByte();
     EntityX     = datainputstream.ReadInt();
     EntityY     = datainputstream.ReadByte();
     EntityZ     = datainputstream.ReadInt();
 }
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId    = datainputstream.ReadInt();
     name        = ReadString(datainputstream, 16);
     xPosition   = datainputstream.ReadInt();
     yPosition   = datainputstream.ReadInt();
     zPosition   = datainputstream.ReadInt();
     rotation    = datainputstream.ReadByte();
     pitch       = datainputstream.ReadByte();
     currentItem = datainputstream.ReadShort();
 }
Example #5
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId         = datainputstream.ReadInt();
     type             = datainputstream.ReadByte();
     xPosition        = datainputstream.ReadInt();
     yPosition        = datainputstream.ReadInt();
     zPosition        = datainputstream.ReadInt();
     yaw              = datainputstream.ReadByte();
     pitch            = datainputstream.ReadByte();
     receivedMetadata = net.minecraft.src.DataWatcher.ReadWatchableObjects(datainputstream
                                                                           );
 }
Example #6
0
		/// <exception cref="System.IO.IOException"/>
		public override void ReadPacketData(java.io.DataInputStream datainputstream)
		{
			entityId = datainputstream.ReadInt();
			itemID = datainputstream.ReadShort();
			count = datainputstream.ReadByte();
			itemDamage = datainputstream.ReadShort();
			xPosition = datainputstream.ReadInt();
			yPosition = datainputstream.ReadInt();
			zPosition = datainputstream.ReadInt();
			rotation = datainputstream.ReadByte();
			pitch = datainputstream.ReadByte();
			roll = datainputstream.ReadByte();
		}
Example #7
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     protocolVersion = datainputstream.ReadInt();
     username        = ReadString(datainputstream, 16);
     mapSeed         = datainputstream.ReadLong();
     dimension       = datainputstream.ReadByte();
 }
Example #8
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     field_28052_a = datainputstream.ReadShort();
     field_28051_b = datainputstream.ReadShort();
     field_28053_c = new byte[datainputstream.ReadByte()];
     datainputstream.ReadFully(field_28053_c);
 }
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     SoundType = datainputstream.ReadInt();
     BlockX    = datainputstream.ReadInt();
     BlockY    = datainputstream.ReadByte();
     BlockZ    = datainputstream.ReadInt();
     ExtraInfo = datainputstream.ReadInt();
 }
        /// <exception cref="System.IO.IOException"/>
        public override void ReadPacketData(java.io.DataInputStream datainputstream)
        {
            windowId = datainputstream.ReadByte();
            short word0 = datainputstream.ReadShort();

            itemStack = new net.minecraft.src.ItemStack[word0];
            for (int i = 0; i < word0; i++)
            {
                short word1 = datainputstream.ReadShort();
                if (word1 >= 0)
                {
                    byte  byte0 = datainputstream.ReadByte();
                    short word2 = datainputstream.ReadShort();
                    itemStack[i] = new net.minecraft.src.ItemStack(word1, byte0, word2);
                }
            }
        }
        /// <exception cref="System.IO.IOException"/>
        public override void ReadPacketData(java.io.DataInputStream datainputstream)
        {
            windowId = datainputstream.ReadByte();
            itemSlot = datainputstream.ReadShort();
            short word0 = datainputstream.ReadShort();

            if (word0 >= 0)
            {
                byte  byte0 = datainputstream.ReadByte();
                short word1 = datainputstream.ReadShort();
                myItemStack = new net.minecraft.src.ItemStack(word0, byte0, word1);
            }
            else
            {
                myItemStack = null;
            }
        }
        /// <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;
            }
        }
        /// <exception cref="System.IO.IOException"/>
        public override void ReadPacketData(java.io.DataInputStream datainputstream)
        {
            explosionX    = datainputstream.ReadDouble();
            explosionY    = datainputstream.ReadDouble();
            explosionZ    = datainputstream.ReadDouble();
            explosionSize = datainputstream.ReadFloat();
            int i = datainputstream.ReadInt();

            destroyedBlockPositions = new HashSet <ChunkPosition>();
            int j = (int)explosionX;
            int k = (int)explosionY;
            int l = (int)explosionZ;

            for (int i1 = 0; i1 < i; i1++)
            {
                int j1 = datainputstream.ReadByte() + j;
                int k1 = datainputstream.ReadByte() + k;
                int l1 = datainputstream.ReadByte() + l;
                destroyedBlockPositions.Add(new net.minecraft.src.ChunkPosition(j1, k1, l1));
            }
        }
Example #14
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId  = datainputstream.ReadInt();
     type      = datainputstream.ReadByte();
     xPosition = datainputstream.ReadInt();
     yPosition = datainputstream.ReadInt();
     zPosition = datainputstream.ReadInt();
     ownerId   = datainputstream.ReadInt();
     if (ownerId > 0)
     {
         motionX = datainputstream.ReadShort();
         motionY = datainputstream.ReadShort();
         motionZ = datainputstream.ReadShort();
     }
 }
Example #15
0
        // Referenced classes of package net.minecraft.src:
        //            Packet, ItemStack, NetHandler
        /// <exception cref="System.IO.IOException"/>
        public override void ReadPacketData(java.io.DataInputStream datainputstream)
        {
            xPosition = datainputstream.ReadInt();
            yPosition = datainputstream.Read();
            zPosition = datainputstream.ReadInt();
            direction = datainputstream.Read();
            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;
            }
        }
Example #16
0
        /// <exception cref="System.IO.IOException"/>
        public static List <WatchableObject> ReadWatchableObjects(java.io.DataInputStream
                                                                  datainputstream)
        {
            List <WatchableObject> arraylist = null;

            for (byte byte0 = datainputstream.ReadByte(); byte0 != 127; byte0 = datainputstream
                                                                                .ReadByte())
            {
                if (arraylist == null)
                {
                    arraylist = new List <WatchableObject>();
                }
                int i = (byte0 & 0xe0) >> 5;
                int j = byte0 & 0x1f;
                net.minecraft.src.WatchableObject watchableobject = null;
                switch (i)
                {
                case 0:
                {
                    // '\0'
                    watchableobject = new net.minecraft.src.WatchableObject(i, j, datainputstream.ReadByte());
                    break;
                }

                case 1:
                {
                    // '\001'
                    watchableobject = new net.minecraft.src.WatchableObject(i, j, datainputstream.ReadShort());
                    break;
                }

                case 2:
                {
                    // '\002'
                    watchableobject = new net.minecraft.src.WatchableObject(i, j, datainputstream.ReadInt());
                    break;
                }

                case 3:
                {
                    // '\003'
                    watchableobject = new net.minecraft.src.WatchableObject(i, j, datainputstream.ReadFloat());
                    break;
                }

                case 4:
                {
                    // '\004'
                    watchableobject = new net.minecraft.src.WatchableObject(i, j, net.minecraft.src.Packet.ReadString(datainputstream, 64));
                    break;
                }

                case 5:
                {
                    // '\005'
                    short word0 = datainputstream.ReadShort();
                    byte  byte1 = datainputstream.ReadByte();
                    short word1 = datainputstream.ReadShort();
                    watchableobject = new net.minecraft.src.WatchableObject(i, j, new net.minecraft.src.ItemStack
                                                                                (word0, byte1, word1));
                    break;
                }

                case 6:
                {
                    // '\006'
                    int k  = datainputstream.ReadInt();
                    int l  = datainputstream.ReadInt();
                    int i1 = datainputstream.ReadInt();
                    watchableobject = new net.minecraft.src.WatchableObject(i, j, new net.minecraft.src.ChunkCoordinates
                                                                                (k, l, i1));
                    break;
                }
                }
                arraylist.Add(watchableobject);
            }
            return(arraylist);
        }
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     statId    = datainputstream.ReadInt();
     statValue = datainputstream.ReadByte();
 }
Example #18
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     windowId         = datainputstream.ReadByte();
     progressBar      = datainputstream.ReadShort();
     progressBarValue = datainputstream.ReadShort();
 }
Example #19
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     windowId      = datainputstream.ReadByte();
     shortWindowId = datainputstream.ReadShort();
     field_20035_c = datainputstream.ReadByte() != 0;
 }
Example #20
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId = datainputstream.ReadInt();
     animate  = datainputstream.ReadByte();
 }
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     base.ReadPacketData(datainputstream);
     yaw   = datainputstream.ReadByte();
     pitch = datainputstream.ReadByte();
 }
Example #22
0
 // Referenced classes of package net.minecraft.src:
 //            Packet, NetHandler
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     playerEntityId = datainputstream.ReadInt();
     targetEntity   = datainputstream.ReadInt();
     isLeftClick    = datainputstream.ReadByte();
 }
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     windowId = datainputstream.ReadByte();
 }
Example #24
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     field_25015_b = datainputstream.ReadByte();
 }
Example #25
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     Dimension = datainputstream.ReadByte();
 }