protected override void Parse(EndianBinaryReader r) { EID = ReadVarInt(r); Title = ReadString8(r); Position = CoordInt.Read(r); FaceDirection = (Face)r.ReadByte(); }
protected override void Parse(EndianBinaryReader r) { Pos = CoordInt.Read(r); Action = (Actions)r.ReadByte(); Data = NBT.Tag.ReadTag(r); #if DEBUGPACKET if (Action == Actions.Unknown2) { Console.WriteLine(this); } if (Action == Actions.Unknown3) { Console.WriteLine(this); } if (Action == Actions.Unknown4) { Console.WriteLine(this); } if (Action.ToString() == ((int)Action).ToString()) { throw new NotImplementedException(Action.ToString()); } #endif }
protected override void Parse(EndianBinaryReader r) { Pos = CoordInt.Read(r); Action = (Actions)r.ReadByte(); int length = r.ReadInt16(); //Changes: compressed length if (length >= 0) { Data = r.ReadBytesOrThrow(length); } #if DEBUG if (Action == Actions.Unknown2) { Console.WriteLine(this); } if (Action == Actions.Unknown3) { Console.WriteLine(this); } if (Action == Actions.Unknown4) { Console.WriteLine(this); } if (Action.ToString() == ((int)Action).ToString()) { throw new NotImplementedException(Action.ToString()); } #endif }
protected override void Parse(EndianBinaryReader r) { Command = ReadString8(r); if (r.ReadBoolean()) { Position = CoordInt.Read(r); } }
protected override void Parse(EndianBinaryReader r) { BlockPosition = CoordInt.Read(r); FaceDirection = (Face)r.ReadByte(); Item = SlotItem.Read(r); CursorX = r.ReadByte(); CursorY = r.ReadByte(); CursorZ = r.ReadByte(); }
protected override void Parse(EndianBinaryReader r) { Position = CoordInt.Read(r); BlockType = (BlockID)ReadVarInt(r); Metadata = r.ReadByte(); #if DEBUG if (BlockType.ToString() == ((int)BlockType).ToString()) { throw new NotImplementedException(BlockType.ToString()); } #endif }
protected override void Parse(EndianBinaryReader r) { Position = CoordInt.Read(r); int val = ReadVarInt(r); BlockType = (BlockID)(val >> 4); Metadata = (byte)(val & 0x0F); #if DEBUGPACKET if (BlockType.ToString() == ((int)BlockType).ToString()) { throw new NotImplementedException(BlockType.ToString()); } #endif }
protected override void Parse(EndianBinaryReader r) { EffectID = (SoundEffects)r.ReadInt32(); Position = CoordInt.Read(r); SoundData = r.ReadInt32(); SoundByte = r.ReadByte(); //Debug.WriteLine(DebugPacket.Read(r)); #if DEBUGPACKET if (EffectID.ToString() == ((int)EffectID).ToString()) { throw new NotImplementedException(EffectID.ToString()); } #endif }
protected override void Parse(EndianBinaryReader r) { Status = (StatusEnum)r.ReadByte(); Position = CoordInt.Read(r); Face = (Face)r.ReadByte(); #if DEBUGPACKET if (Status.ToString() == ((int)Status).ToString()) { throw new NotImplementedException(Status.ToString()); } if (Face.ToString() == ((int)Face).ToString()) { throw new NotImplementedException(Face.ToString()); } #endif }
protected override void Parse(EndianBinaryReader r) { Position = CoordInt.Read(r); try { Text1 = ChatJson.Parse(ReadString8(r)); Text2 = ChatJson.Parse(ReadString8(r)); Text3 = ChatJson.Parse(ReadString8(r)); Text4 = ChatJson.Parse(ReadString8(r)); } #if !DEBUG catch (Exception ex) { Log.WriteServer(ex); } #endif finally { } }
protected override void Parse(EndianBinaryReader r) { Position = CoordInt.Read(r); }
protected override void Parse(EndianBinaryReader r) { EID = ReadVarInt(r); Position = CoordInt.Read(r); DestroyStage = r.ReadByte(); }