예제 #1
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();
 }
예제 #2
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     xLocation      = datainputstream.ReadInt();
     yLocation      = datainputstream.ReadShort();
     zLocation      = datainputstream.ReadInt();
     instrumentType = datainputstream.Read();
     pitch          = datainputstream.Read();
 }
예제 #3
0
 // Referenced classes of package net.minecraft.src:
 //            Packet, NetHandler
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     status    = datainputstream.Read();
     xPosition = datainputstream.ReadInt();
     yPosition = datainputstream.Read();
     zPosition = datainputstream.ReadInt();
     face      = datainputstream.Read();
 }
예제 #4
0
 /// <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();
 }
예제 #5
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     xPosition = datainputstream.ReadInt();
     yPosition = datainputstream.Read();
     zPosition = datainputstream.ReadInt();
     type      = datainputstream.Read();
     metadata  = datainputstream.Read();
 }
예제 #6
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId  = datainputstream.ReadInt();
     xPosition = datainputstream.ReadInt();
     yPosition = datainputstream.ReadInt();
     zPosition = datainputstream.ReadInt();
     yaw       = unchecked ((byte)datainputstream.Read());
     pitch     = unchecked ((byte)datainputstream.Read());
 }
예제 #7
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId  = datainputstream.ReadInt();
     title     = ReadString(datainputstream, net.minecraft.src.EnumArt.LongestNameLength);
     xPosition = datainputstream.ReadInt();
     yPosition = datainputstream.ReadInt();
     zPosition = datainputstream.ReadInt();
     direction = datainputstream.ReadInt();
 }
예제 #8
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     xPosition = datainputstream.ReadInt();
     yPosition = datainputstream.ReadShort();
     zPosition = datainputstream.ReadInt();
     signLines = new string[4];
     for (int i = 0; i < 4; i++)
     {
         signLines[i] = ReadString(datainputstream, 15);
     }
 }
 /// <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();
 }
예제 #10
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
                                                                           );
 }
예제 #11
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();
		}
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     xPosition       = datainputstream.ReadInt();
     zPosition       = datainputstream.ReadInt();
     size            = datainputstream.ReadShort();
     coordinateArray = new short[size];
     typeArray       = new byte[size];
     metadataArray   = new byte[size];
     for (int i = 0; i < size; i++)
     {
         coordinateArray[i] = datainputstream.ReadShort();
     }
     datainputstream.ReadFully(typeArray);
     datainputstream.ReadFully(metadataArray);
 }
예제 #13
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();
     }
 }
예제 #14
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityID   = datainputstream.ReadInt();
     slot       = datainputstream.ReadShort();
     itemID     = datainputstream.ReadShort();
     itemDamage = datainputstream.ReadShort();
 }
예제 #15
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId = datainputstream.ReadInt();
     motionX  = datainputstream.ReadShort();
     motionY  = datainputstream.ReadShort();
     motionZ  = datainputstream.ReadShort();
 }
예제 #16
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();
 }
예제 #17
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;
            }
        }
예제 #18
0
        /// <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));
            }
        }
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId      = datainputstream.ReadInt();
     field_21018_b = net.minecraft.src.DataWatcher.ReadWatchableObjects(datainputstream);
 }
예제 #20
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);
        }
예제 #21
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     xPosition = datainputstream.ReadInt();
     yPosition = datainputstream.ReadInt();
     mode      = datainputstream.Read() != 0;
 }
예제 #22
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     collectedEntityId = datainputstream.ReadInt();
     collectorEntityId = datainputstream.ReadInt();
 }
예제 #23
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     statId    = datainputstream.ReadInt();
     statValue = datainputstream.ReadByte();
 }
예제 #24
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId = datainputstream.ReadInt();
     animate  = datainputstream.ReadByte();
 }
예제 #25
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();
 }
예제 #26
0
 /// <exception cref="System.IO.IOException"/>
 public override void ReadPacketData(java.io.DataInputStream datainputstream)
 {
     entityId        = datainputstream.ReadInt();
     vehicleEntityId = datainputstream.ReadInt();
 }