/// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     base.WritePacketData(dataoutputstream);
     dataoutputstream.WriteByte(xPosition);
     dataoutputstream.WriteByte(yPosition);
     dataoutputstream.WriteByte(zPosition);
 }
Example #2
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteByte(windowId);
     dataoutputstream.WriteByte(inventoryType);
     dataoutputstream.WriteUTF(windowTitle);
     dataoutputstream.WriteByte(slotsCount);
 }
Example #3
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(EntityID);
     dataoutputstream.WriteByte(UnknownByte);
     dataoutputstream.WriteInt(EntityX);
     dataoutputstream.WriteByte(EntityY);
     dataoutputstream.WriteInt(EntityZ);
 }
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(entityId);
     WriteString(name, dataoutputstream);
     dataoutputstream.WriteInt(xPosition);
     dataoutputstream.WriteInt(yPosition);
     dataoutputstream.WriteInt(zPosition);
     dataoutputstream.WriteByte(rotation);
     dataoutputstream.WriteByte(pitch);
     dataoutputstream.WriteShort(currentItem);
 }
Example #5
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(entityId);
     dataoutputstream.WriteByte(type);
     dataoutputstream.WriteInt(xPosition);
     dataoutputstream.WriteInt(yPosition);
     dataoutputstream.WriteInt(zPosition);
     dataoutputstream.WriteByte(yaw);
     dataoutputstream.WriteByte(pitch);
     metaData.WriteWatchableObjects(dataoutputstream);
 }
Example #6
0
		/// <exception cref="System.IO.IOException"/>
		public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
		{
			dataoutputstream.WriteInt(entityId);
			dataoutputstream.WriteShort(itemID);
			dataoutputstream.WriteByte(count);
			dataoutputstream.WriteShort(itemDamage);
			dataoutputstream.WriteInt(xPosition);
			dataoutputstream.WriteInt(yPosition);
			dataoutputstream.WriteInt(zPosition);
			dataoutputstream.WriteByte(rotation);
			dataoutputstream.WriteByte(pitch);
			dataoutputstream.WriteByte(roll);
		}
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteByte(windowId);
     dataoutputstream.WriteShort(itemSlot);
     if (myItemStack == null)
     {
         dataoutputstream.WriteShort(-1);
     }
     else
     {
         dataoutputstream.WriteShort(myItemStack.itemID);
         dataoutputstream.WriteByte(myItemStack.stackSize);
         dataoutputstream.WriteShort(myItemStack.GetItemDamage());
     }
 }
Example #8
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteShort(field_28052_a);
     dataoutputstream.WriteShort(field_28051_b);
     dataoutputstream.WriteByte(field_28053_c.Length);
     dataoutputstream.Write(field_28053_c);
 }
Example #9
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(protocolVersion);
     WriteString(username, dataoutputstream);
     dataoutputstream.WriteLong(mapSeed);
     dataoutputstream.WriteByte(dimension);
 }
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(SoundType);
     dataoutputstream.WriteInt(BlockX);
     dataoutputstream.WriteByte(BlockY);
     dataoutputstream.WriteInt(BlockZ);
     dataoutputstream.WriteInt(ExtraInfo);
 }
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteByte(windowId);
     dataoutputstream.WriteShort(itemStack.Length);
     for (int i = 0; i < itemStack.Length; i++)
     {
         if (itemStack[i] == null)
         {
             dataoutputstream.WriteShort(-1);
         }
         else
         {
             dataoutputstream.WriteShort((short)itemStack[i].itemID);
             dataoutputstream.WriteByte(unchecked ((byte)itemStack[i].stackSize));
             dataoutputstream.WriteShort((short)itemStack[i].GetItemDamage());
         }
     }
 }
 /// <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());
     }
 }
Example #13
0
 /// <exception cref="System.IO.IOException"/>
 public virtual void WriteWatchableObjects(java.io.DataOutputStream dataoutputstream
                                           )
 {
     net.minecraft.src.WatchableObject watchableobject;
     for (System.Collections.IEnumerator iterator = watchedObjects.Values.GetEnumerator
                                                        (); iterator.MoveNext(); WriteWatchableObject(dataoutputstream, watchableobject))
     {
         watchableobject = (net.minecraft.src.WatchableObject)iterator.Current;
     }
     dataoutputstream.WriteByte(127);
 }
Example #14
0
 /// <exception cref="System.IO.IOException"/>
 public static void WriteObjectsInListToStream(List <WatchableObject> list, java.io.DataOutputStream dataoutputstream)
 {
     if (list != null)
     {
         net.minecraft.src.WatchableObject watchableobject;
         for (System.Collections.IEnumerator iterator = list.GetEnumerator(); iterator.MoveNext
                  (); WriteWatchableObject(dataoutputstream, watchableobject))
         {
             watchableobject = (net.minecraft.src.WatchableObject)iterator.Current;
         }
     }
     dataoutputstream.WriteByte(127);
 }
        /// <exception cref="System.IO.IOException"/>
        public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
        {
            dataoutputstream.WriteDouble(explosionX);
            dataoutputstream.WriteDouble(explosionY);
            dataoutputstream.WriteDouble(explosionZ);
            dataoutputstream.WriteFloat(explosionSize);
            dataoutputstream.WriteInt(destroyedBlockPositions.Count);
            int i = (int)explosionX;
            int j = (int)explosionY;
            int k = (int)explosionZ;
            int j1;

            for (System.Collections.IEnumerator iterator = destroyedBlockPositions.GetEnumerator
                                                               (); iterator.MoveNext(); dataoutputstream.WriteByte(j1))
            {
                net.minecraft.src.ChunkPosition chunkposition = (net.minecraft.src.ChunkPosition)
                                                                iterator.Current;
                int l  = chunkposition.x - i;
                int i1 = chunkposition.y - j;
                j1 = chunkposition.z - k;
                dataoutputstream.WriteByte(l);
                dataoutputstream.WriteByte(i1);
            }
        }
Example #16
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(entityId);
     dataoutputstream.WriteByte(type);
     dataoutputstream.WriteInt(xPosition);
     dataoutputstream.WriteInt(yPosition);
     dataoutputstream.WriteInt(zPosition);
     dataoutputstream.WriteInt(ownerId);
     if (ownerId > 0)
     {
         dataoutputstream.WriteShort(motionX);
         dataoutputstream.WriteShort(motionY);
         dataoutputstream.WriteShort(motionZ);
     }
 }
Example #17
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(xPosition);
     dataoutputstream.Write(yPosition);
     dataoutputstream.WriteInt(zPosition);
     dataoutputstream.Write(direction);
     if (itemStack == null)
     {
         dataoutputstream.WriteShort(-1);
     }
     else
     {
         dataoutputstream.WriteShort(itemStack.itemID);
         dataoutputstream.WriteByte(itemStack.stackSize);
         dataoutputstream.WriteShort(itemStack.GetItemDamage());
     }
 }
Example #18
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(entityId);
     dataoutputstream.WriteByte(animate);
 }
Example #19
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(playerEntityId);
     dataoutputstream.WriteInt(targetEntity);
     dataoutputstream.WriteByte(isLeftClick);
 }
Example #20
0
        /// <exception cref="System.IO.IOException"/>
        private static void WriteWatchableObject(java.io.DataOutputStream dataoutputstream, net.minecraft.src.WatchableObject watchableobject)
        {
            int i = (watchableobject.GetObjectType() << 5 | watchableobject.GetDataValueId()
                     & 0x1f) & 0xff;

            dataoutputstream.WriteByte(i);
            switch (watchableobject.GetObjectType())
            {
            case 0:
            {
                // '\0'
                dataoutputstream.WriteByte(((byte)watchableobject.GetObject()));
                break;
            }

            case 1:
            {
                // '\001'
                dataoutputstream.WriteShort(((short)watchableobject.GetObject()));
                break;
            }

            case 2:
            {
                // '\002'
                dataoutputstream.WriteInt(((int)watchableobject.GetObject()));
                break;
            }

            case 3:
            {
                // '\003'
                dataoutputstream.WriteFloat(((float)watchableobject.GetObject()));
                break;
            }

            case 4:
            {
                // '\004'
                net.minecraft.src.Packet.WriteString((string)watchableobject.GetObject(), dataoutputstream
                                                     );
                break;
            }

            case 5:
            {
                // '\005'
                net.minecraft.src.ItemStack itemstack = (net.minecraft.src.ItemStack)watchableobject
                                                        .GetObject();
                dataoutputstream.WriteShort(itemstack.GetItem().ID);
                dataoutputstream.WriteByte(itemstack.stackSize);
                dataoutputstream.WriteShort(itemstack.GetItemDamage());
                break;
            }

            case 6:
            {
                // '\006'
                net.minecraft.src.ChunkCoordinates chunkcoordinates = (net.minecraft.src.ChunkCoordinates
                                                                       )watchableobject.GetObject();
                dataoutputstream.WriteInt(chunkcoordinates.posX);
                dataoutputstream.WriteInt(chunkcoordinates.posY);
                dataoutputstream.WriteInt(chunkcoordinates.posZ);
                break;
            }
            }
        }
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteByte(windowId);
 }
Example #22
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteByte(Dimension);
 }
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteInt(statId);
     dataoutputstream.WriteByte(statValue);
 }
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     base.WritePacketData(dataoutputstream);
     dataoutputstream.WriteByte(yaw);
     dataoutputstream.WriteByte(pitch);
 }
Example #25
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteByte(windowId);
     dataoutputstream.WriteShort(progressBar);
     dataoutputstream.WriteShort(progressBarValue);
 }
Example #26
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteByte(field_25015_b);
 }
Example #27
0
 /// <exception cref="System.IO.IOException"/>
 public override void WritePacketData(java.io.DataOutputStream dataoutputstream)
 {
     dataoutputstream.WriteByte(windowId);
     dataoutputstream.WriteShort(shortWindowId);
     dataoutputstream.WriteByte(field_20035_c ? 1 : 0);
 }