Beispiel #1
0
 public override void Read(PacketReader stream)
 {
     World = stream.ReadInt();
     Difficulty = stream.ReadSByte();
     CreativeMode = stream.ReadSByte();
     WorldHeight = stream.ReadShort();
     LevelType = stream.ReadString16(9);
 }
Beispiel #2
0
 public override void Read(PacketReader reader)
 {
     Text = reader.ReadString16(100);
 }
Beispiel #3
0
 public override void Read(PacketReader stream)
 {
     PlayerName = stream.ReadString16(16);
     Online = stream.ReadBool();
     Ping = stream.ReadShort();
 }
Beispiel #4
0
 public override void Read(PacketReader reader)
 {
     Channel = reader.ReadString16(260);
     ByteLength = reader.ReadShort();
     Message = reader.ReadBytes(ByteLength);
 }
Beispiel #5
0
 public override void Read(PacketReader stream)
 {
     UsernameOrHash = stream.ReadString16(16);
 }
Beispiel #6
0
 public override void Read(PacketReader stream)
 {
     WindowId = stream.ReadSByte();
     InventoryType = (InterfaceType)stream.ReadSByte();
     WindowTitle = stream.ReadString16(100);
     SlotCount = stream.ReadSByte();
 }
Beispiel #7
0
 public override void Read(PacketReader reader)
 {
     ProtocolOrEntityId = reader.ReadInt();
     LevelType = reader.ReadString16(9);
     ServerMode = reader.ReadSByte();
     Dimension = reader.ReadSByte();
     Difficulty = reader.ReadSByte();
     WorldHeight = reader.ReadByte();
     MaxPlayers = reader.ReadByte();
 }
Beispiel #8
0
 public override void Read(PacketReader stream)
 {
     Reason = stream.ReadString16(100);
 }
Beispiel #9
0
 public override void Read(PacketReader stream)
 {
     ProtocolVersion = stream.ReadByte();
     Username = stream.ReadString16(64);
     ServerHost = stream.ReadString16(64);
     ServerPort = stream.ReadInt();
 }
Beispiel #10
0
 public override void Read(PacketReader reader)
 {
     Locale = reader.ReadString16(10);
     ViewDistance = reader.ReadByte();
     ChatFlags = reader.ReadByte();
     Difficulty = reader.ReadByte();
 }
Beispiel #11
0
 public override void Read(PacketReader stream)
 {
     EntityId = stream.ReadInt();
     Title = stream.ReadString16(13);
     X = stream.ReadInt();
     Y = stream.ReadInt();
     Z = stream.ReadInt();
     GraphicId = stream.ReadInt();
 }
Beispiel #12
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 #13
0
 public override void Read(PacketReader reader)
 {
     ProtocolOrEntityId = reader.ReadInt();
     Username = reader.ReadString16(16);
     MapSeed = reader.ReadLong();
     Level_Type = reader.ReadString16(9);
     ServerMode = reader.ReadInt();
     Dimension = reader.ReadSByte();
     Unknown = reader.ReadSByte();
     WorldHeight = reader.ReadByte();
     MaxPlayers = reader.ReadByte();
 }
Beispiel #14
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 #15
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 #16
0
 public override void Read(PacketReader stream)
 {
     Message = stream.ReadString16(100);
 }
Beispiel #17
0
 public override void Read(PacketReader stream)
 {
     SoundName = stream.ReadString16(20);
     EffectX = stream.ReadInt();
     EffectY = stream.ReadInt();
     EffectZ = stream.ReadInt();
     Volume = stream.ReadFloat();
     Pitch = stream.ReadByte();
 }
Beispiel #18
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 #19
0
 public override void Read(PacketReader stream)
 {
     UsernameAndIpOrHash = stream.ReadString16(64);
 }