Пример #1
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(BlockToHold);
            stream.WriteByte((byte)PreventChange);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(BlockType);
            stream.WriteByte((byte)AllowPlacement);
            stream.WriteByte((byte)AllowDeletion);

            return(this);
        }
Пример #3
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteSByte(PlayerID);
            stream.WriteByte(Yaw);
            stream.WriteByte(Pitch);

            return(this);
        }
Пример #4
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            Coordinates.ToStreamShort(stream);
            stream.WriteByte((byte)Mode);
            stream.WriteByte(BlockType);

            return(this);
        }
Пример #5
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(PlayerID);
            Position.ToStreamShort(stream);
            stream.WriteByte(Yaw);
            stream.WriteByte(Pitch);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteSByte(PlayerID);
            ChangeLocation.ToStreamSByte(stream);
            stream.WriteByte(Yaw);
            stream.WriteByte(Pitch);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(ProtocolVersion);
            stream.WriteString(Username);
            stream.WriteString(VerificationKey);
            stream.WriteByte(UnUsed);

            return(this);
        }
Пример #8
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteString(TextureURL);
            stream.WriteByte(SideBlock);
            stream.WriteByte(EdgeBlock);
            stream.WriteShort(SideLevel);

            return(this);
        }
Пример #9
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(ProtocolVersion);
            stream.WriteString(ServerName);
            stream.WriteString(ServerMOTD);
            stream.WriteByte((byte)UserType);

            return(this);
        }
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteSByte(PlayerID);
            Coordinates.ToStreamShort(stream);
            stream.WriteByte(Yaw);
            stream.WriteByte(Pitch);

            return(this);
        }
Пример #11
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte((byte)Flying);
            stream.WriteByte((byte)NoClip);
            stream.WriteByte((byte)Speeding);
            stream.WriteByte((byte)SpawnControl);
            stream.WriteByte((byte)ThirdPersonView);
            stream.WriteShort(JumpHeight);

            return(this);
        }
Пример #12
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(EntityID);
            stream.WriteString(InGameName);
            stream.WriteString(SkinName);
            Spawn.ToStreamShort(stream);
            stream.WriteByte(SpawnYaw);
            stream.WriteByte(SpawnPitch);

            return(this);
        }
Пример #13
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte((byte)Button);
            stream.WriteByte((byte)Action);
            stream.WriteShort(Yaw);
            stream.WriteShort(Pitch);
            stream.WriteByte(TargetEntityID);
            TargetBlockLocation.ToStreamShort(stream);
            stream.WriteByte((byte)TargetBlockFace);

            return(this);
        }
Пример #14
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(UnUsed);
            stream.WriteString(Message);

            return(this);
        }
Пример #15
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(EntityID);
            stream.WriteString(ModelName);

            return(this);
        }
Пример #16
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteShort(ChunkLength);
            stream.WriteByteArray(ChunkData);
            stream.WriteByte(PercentComplete);

            return(this);
        }
Пример #17
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte((byte)Variable);
            stream.WriteShort(Red);
            stream.WriteShort(Green);
            stream.WriteShort(Blue);

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

            return(this);
        }
Пример #19
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.WriteShort(NameID);
            stream.WriteString(PlayerName);
            stream.WriteString(ListName);
            stream.WriteString(GroupName);
            stream.WriteByte(GroupRank);

            return(this);
        }
Пример #21
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(SelectionID);
            stream.WriteString(Label);
            StartLocation.ToStreamShort(stream);
            EndLocation.ToStreamShort(stream);
            stream.WriteShort(Red);
            stream.WriteShort(Green);
            stream.WriteShort(Blue);
            stream.WriteShort(Opacity);

            return(this);
        }
Пример #22
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte((byte)WeatherType);

            return(this);
        }
Пример #23
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(SupportLevel);

            return(this);
        }
Пример #24
0
        public IPacket WritePacket(IProtocolStream stream)
        {
            stream.WriteByte(SelectionID);

            return(this);
        }