Ejemplo n.º 1
0
        public override void Flush(NetworkStream ns)
        {
            MinecraftStream read = new MinecraftStream();

            read.WriteInt(X);
            read.WriteInt(Y);
            read.WriteByte(GroundUp);
            read.WriteVarInt(BitMask);



            var bufc = Data.RawData.Write();

            read.WriteVarInt(bufc.Length + 256);

            foreach (var i in bufc)
            {
                read.WriteByte(i);
            }

            for (int i = 0; i < 256; i++)
            {
                read.WriteByte(1);
            }
            read.WriteVarInt(0);
            var buf = read.Flush(ID);

            ns.Write(buf, 0, buf.Length);
        }
Ejemplo n.º 2
0
        public override void Flush(NetworkStream ns)
        {
            MinecraftStream read = new MinecraftStream();

            read.WriteVarInt(KeepAliveID);
            var buf = read.Flush(ID);

            ns.Write(buf, 0, buf.Length);
        }
Ejemplo n.º 3
0
        public override void Flush(NetworkStream ns)
        {
            MinecraftStream read = new MinecraftStream();

            read.WriteString(Json);
            var buf = read.Flush(ID);

            ns.Write(buf, 0, buf.Length);
        }
Ejemplo n.º 4
0
        public override void Flush(NetworkStream ns)
        {
            MinecraftStream Write = new MinecraftStream();

            Write.WriteLong(Payload);
            var buf = Write.Flush(ID);

            ns.Write(buf, 0, buf.Length);
        }
Ejemplo n.º 5
0
        public override void Flush(NetworkStream ns)
        {
            MinecraftStream read = new MinecraftStream();

            read.WriteDouble(X);
            read.WriteDouble(Y);
            read.WriteDouble(X);
            read.WriteFloat(Yaw);
            read.WriteFloat(Pitch);
            read.WriteByte(Flags);
            read.WriteVarInt(TeleportID);

            var buf = read.Flush(ID);

            ns.Write(buf, 0, buf.Length);
        }
Ejemplo n.º 6
0
        public override void Flush(NetworkStream ns)
        {
            MinecraftStream read = new MinecraftStream();

            read.WriteInt(EntityID);
            read.WriteByte(Gamemode);
            read.WriteInt(Dimension);
            read.WriteByte(Difficulty);
            read.WriteByte(MaxPlayers);
            read.WriteString(LevelType);
            read.WriteSByte(ReducedDebugInfo);


            var buf = read.Flush(ID);

            ns.Write(buf, 0, buf.Length);
        }