Beispiel #1
0
 public override void Read(PacketReader stream)
 {
     World = stream.ReadSByte();
     Unknown = stream.ReadSByte();
     CreativeMode = stream.ReadSByte();
     WorldHeight = stream.ReadShort();
     MapSeed = stream.ReadLong();
     LevelType = stream.ReadString16(9);
 }
Beispiel #2
0
 public override void Read(PacketReader reader)
 {
     ServerId = reader.ReadString16(20);
     PublicKeyLength = reader.ReadShort();
     PublicKey = reader.ReadBytes(PublicKeyLength);
     VerifyTokenLength = reader.ReadShort();
     VerifyToken = reader.ReadBytes(VerifyTokenLength);
 }
Beispiel #3
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     Effect = (EntityEffects)stream.ReadByte();
     Amplifier = stream.ReadByte();
     Duration = stream.ReadShort();
 }
Beispiel #4
0
 public override void Read(PacketReader stream)
 {
     WindowId = stream.ReadSByte();
     Property = stream.ReadShort();
     Value = stream.ReadShort();
 }
Beispiel #5
0
 public override void Read(PacketReader stream)
 {
     WindowId = stream.ReadSByte();
     Items = new ItemStack[stream.ReadShort()];
     for (int i = 0; i < Items.Length; i++)
         Items[i] = ItemStack.Read(stream);
 }
Beispiel #6
0
 public override void Read(PacketReader stream)
 {
     WindowId = stream.ReadSByte();
     Transaction = stream.ReadShort();
     Accepted = stream.ReadBool();
 }
Beispiel #7
0
 public override void Read(PacketReader stream)
 {
     X = stream.ReadInt();
     Y = stream.ReadShort();
     Z = stream.ReadInt();
     Lines = new string[4];
     for (int i = 0; i < Lines.Length; i++)
         Lines[i] = stream.ReadString16(15);
 }
Beispiel #8
0
 public override void Read(PacketReader stream)
 {
     Slot = stream.ReadShort();
 }
Beispiel #9
0
 public override void Read(PacketReader stream)
 {
     ItemType = stream.ReadShort();
     ItemId = stream.ReadShort();
     TextLength = stream.ReadByte();
     Text = stream.ReadBytes(TextLength);
 }
Beispiel #10
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     X = stream.ReadInt();
     Y = stream.ReadInt();
     Z = stream.ReadInt();
     Count = stream.ReadShort();
 }
Beispiel #11
0
 public override void Read(PacketReader reader)
 {
     Experience = reader.ReadFloat();
     Level = reader.ReadShort();
     TotExperience = reader.ReadShort();
 }
Beispiel #12
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     VelocityX = stream.ReadShort();
     VelocityY = stream.ReadShort();
     VelocityZ = stream.ReadShort();
 }
Beispiel #13
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     Type = (ObjectType)stream.ReadSByte();
     X = stream.ReadInt() / 32.0d; // ((double)intX / 32.0d) => representation of X as double
     Y = stream.ReadInt() / 32.0d;
     Z = stream.ReadInt() / 32.0d;
     FireBallThrowerEid = stream.ReadInt();
     if (FireBallThrowerEid != 0)
     {
         FireBallX = stream.ReadShort();
         FireBallY = stream.ReadShort();
         FireBallZ = stream.ReadShort();
     }
 }
Beispiel #14
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     Slot = stream.ReadShort();
     ItemId = stream.ReadShort();
     Durability = stream.ReadShort();
 }
Beispiel #15
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     ItemId = stream.ReadShort();
     Count = stream.ReadSByte();
     Durability = stream.ReadShort();
     X = stream.ReadInt() / 32.0d;
     Y = stream.ReadInt() / 32.0d;
     Z = stream.ReadInt() / 32.0d;
     Yaw = stream.ReadSByte();
     Pitch = stream.ReadSByte();
     Roll = stream.ReadSByte();
 }
Beispiel #16
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     Type = (MobType)stream.ReadByte();
     X = stream.ReadInt() / 32.0d;
     Y = stream.ReadInt() / 32.0d;
     Z = stream.ReadInt() / 32.0d;
     Yaw = stream.ReadSByte();
     Pitch = stream.ReadSByte();
     HeadYaw = stream.ReadSByte();
     VelocityX = stream.ReadShort();
     VelocityY = stream.ReadShort();
     VelocityZ = stream.ReadShort();
     Data = stream.ReadMetaData();
 }
Beispiel #17
0
 public override void Read(PacketReader stream)
 {
     X = stream.ReadInt();
     Y = stream.ReadShort();
     Z = stream.ReadInt();
     DataA = stream.ReadSByte();
     DataB = stream.ReadSByte();
     BlockId = stream.ReadShort();
 }
Beispiel #18
0
 public override void Read(PacketReader stream)
 {
     ChunkCoords = UniversalCoords.FromChunk(stream.ReadInt(), stream.ReadInt());
     short length = stream.ReadShort();
     CoordsArray = new short[length];
     Types = new sbyte[length];
     Metadata = new sbyte[length];
     for (int i = 0; i < CoordsArray.Length; i++)
         CoordsArray[i] = stream.ReadShort();
     for (int i = 0; i < Types.Length; i++)
         Types[i] = stream.ReadSByte();
     for (int i = 0; i < Metadata.Length; i++)
         Metadata[i] = stream.ReadSByte();
 }
Beispiel #19
0
 public override void Read(PacketReader stream)
 {
     Health = stream.ReadShort();
     Food = stream.ReadShort();
     FoodSaturation = stream.ReadFloat();
 }
Beispiel #20
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     PlayerName = stream.ReadString16(16);
     X = stream.ReadInt() / 32.0d;
     Y = stream.ReadInt() / 32.0d;
     Z = stream.ReadInt() / 32.0d;
     Yaw = stream.ReadSByte();
     Pitch = stream.ReadSByte();
     CurrentItem = stream.ReadShort();
     Data = stream.ReadMetaData();
 }
Beispiel #21
0
 public override void Read(PacketReader reader)
 {
     X = reader.ReadInt();
     Y = reader.ReadShort();
     Z = reader.ReadInt();
     Action = reader.ReadSByte();
     Custom1 = reader.ReadInt();
     Custom2 = reader.ReadInt();
     Custom3 = reader.ReadInt();
 }
Beispiel #22
0
 public override void Read(PacketReader stream)
 {
     PlayerName = stream.ReadString16(16);
     Online = stream.ReadBool();
     Ping = stream.ReadShort();
 }
Beispiel #23
0
 public override void Read(PacketReader stream)
 {
     WindowId = stream.ReadSByte();
     Slot = stream.ReadShort();
     RightClick = stream.ReadBool();
     Transaction = stream.ReadShort();
     Shift = stream.ReadBool();
     Item = ItemStack.Read(stream);
 }
Beispiel #24
0
 public override void Read(PacketReader reader)
 {
     Channel = reader.ReadString16(260);
     ByteLength = reader.ReadShort();
     Message = reader.ReadBytes(ByteLength);
 }
Beispiel #25
0
 public override void Read(PacketReader stream)
 {
     X = stream.ReadInt();
     Y = stream.ReadSByte();
     Z = stream.ReadInt();
     Type = stream.ReadShort();
     Data = stream.ReadByte();
 }
Beispiel #26
0
 public override void Read(PacketReader stream)
 {
     World = stream.ReadInt();
     Difficulty = stream.ReadSByte();
     CreativeMode = stream.ReadSByte();
     WorldHeight = stream.ReadShort();
     LevelType = stream.ReadString16(9);
 }
Beispiel #27
0
 public override void Read(PacketReader reader)
 {
     SharedSecretLength = reader.ReadShort();
     SharedSecret = reader.ReadBytes(SharedSecretLength);
     VerifyTokenLength = reader.ReadShort();
     VerifyToken = reader.ReadBytes(VerifyTokenLength);
 }
Beispiel #28
0
 public override void Read(PacketReader stream)
 {
     WindowId = stream.ReadSByte();
     Slot = stream.ReadShort();
     Item = ItemStack.Read(stream);
 }
Beispiel #29
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     Slot = stream.ReadShort();
     Item = ItemStack.Read(stream);
 }
Beispiel #30
0
 public override void Read(PacketReader stream)
 {
     UnknownConstantValue = stream.ReadShort();
     UnknownMapId = stream.ReadShort();
     TextLength = stream.ReadByte();
     Text = stream.ReadBytes(TextLength);
 }