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); }
public override void Read(PacketReader reader) { ServerId = reader.ReadString16(20); PublicKeyLength = reader.ReadShort(); PublicKey = reader.ReadBytes(PublicKeyLength); VerifyTokenLength = reader.ReadShort(); VerifyToken = reader.ReadBytes(VerifyTokenLength); }
public override void Read(PacketReader stream) { EntityId = stream.ReadInt(); Effect = (EntityEffects)stream.ReadByte(); Amplifier = stream.ReadByte(); Duration = stream.ReadShort(); }
public override void Read(PacketReader stream) { WindowId = stream.ReadSByte(); Property = stream.ReadShort(); Value = stream.ReadShort(); }
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); }
public override void Read(PacketReader stream) { WindowId = stream.ReadSByte(); Transaction = stream.ReadShort(); Accepted = stream.ReadBool(); }
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); }
public override void Read(PacketReader stream) { Slot = stream.ReadShort(); }
public override void Read(PacketReader stream) { ItemType = stream.ReadShort(); ItemId = stream.ReadShort(); TextLength = stream.ReadByte(); Text = stream.ReadBytes(TextLength); }
public override void Read(PacketReader stream) { EntityId = stream.ReadInt(); X = stream.ReadInt(); Y = stream.ReadInt(); Z = stream.ReadInt(); Count = stream.ReadShort(); }
public override void Read(PacketReader reader) { Experience = reader.ReadFloat(); Level = reader.ReadShort(); TotExperience = reader.ReadShort(); }
public override void Read(PacketReader stream) { EntityId = stream.ReadInt(); VelocityX = stream.ReadShort(); VelocityY = stream.ReadShort(); VelocityZ = stream.ReadShort(); }
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(); } }
public override void Read(PacketReader stream) { EntityId = stream.ReadInt(); Slot = stream.ReadShort(); ItemId = stream.ReadShort(); Durability = stream.ReadShort(); }
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(); }
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(); }
public override void Read(PacketReader stream) { X = stream.ReadInt(); Y = stream.ReadShort(); Z = stream.ReadInt(); DataA = stream.ReadSByte(); DataB = stream.ReadSByte(); BlockId = stream.ReadShort(); }
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(); }
public override void Read(PacketReader stream) { Health = stream.ReadShort(); Food = stream.ReadShort(); FoodSaturation = stream.ReadFloat(); }
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(); }
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(); }
public override void Read(PacketReader stream) { PlayerName = stream.ReadString16(16); Online = stream.ReadBool(); Ping = stream.ReadShort(); }
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); }
public override void Read(PacketReader reader) { Channel = reader.ReadString16(260); ByteLength = reader.ReadShort(); Message = reader.ReadBytes(ByteLength); }
public override void Read(PacketReader stream) { X = stream.ReadInt(); Y = stream.ReadSByte(); Z = stream.ReadInt(); Type = stream.ReadShort(); Data = stream.ReadByte(); }
public override void Read(PacketReader stream) { World = stream.ReadInt(); Difficulty = stream.ReadSByte(); CreativeMode = stream.ReadSByte(); WorldHeight = stream.ReadShort(); LevelType = stream.ReadString16(9); }
public override void Read(PacketReader reader) { SharedSecretLength = reader.ReadShort(); SharedSecret = reader.ReadBytes(SharedSecretLength); VerifyTokenLength = reader.ReadShort(); VerifyToken = reader.ReadBytes(VerifyTokenLength); }
public override void Read(PacketReader stream) { WindowId = stream.ReadSByte(); Slot = stream.ReadShort(); Item = ItemStack.Read(stream); }
public override void Read(PacketReader stream) { EntityId = stream.ReadInt(); Slot = stream.ReadShort(); Item = ItemStack.Read(stream); }
public override void Read(PacketReader stream) { UnknownConstantValue = stream.ReadShort(); UnknownMapId = stream.ReadShort(); TextLength = stream.ReadByte(); Text = stream.ReadBytes(TextLength); }