Пример #1
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(ExtName);
            stream.WriteInt(Version);

            return(this);
        }
Пример #2
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(Label);
            stream.WriteString(Action);
            stream.WriteInt(KeyCode);
            stream.WriteByte((byte)KeyMods);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteInt(EntityID);
            stream.WriteString(""); // Unused
            stream.WriteLong(Seed);
            stream.WriteSByte((sbyte)Dimension);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteInt(ProtocolVersion);
            stream.WriteString(Username);
            stream.WriteLong(0); // Unused
            stream.WriteByte(0); // Unused

            return(this);
        }