Exemplo n.º 1
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.Position = await stream.ReadAbsolutePositionFAsync();

            this.Pitch = await stream.ReadFloatAsync();

            this.Yaw = await stream.ReadFloatAsync();

            this.OnGround = await stream.ReadBooleanAsync();
        }
Exemplo n.º 2
0
        public override async Task PopulateAsync()
        {
            using (var stream = new MinecraftStream(this.PacketData))
            {
                this.Yaw = await stream.ReadFloatAsync();

                this.Pitch = await stream.ReadFloatAsync();

                this.OnGround = await stream.ReadBooleanAsync();
            }
        }
Exemplo n.º 3
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.Hand = (Hand)await stream.ReadVarIntAsync();

            this.Location = await stream.ReadPositionAsync();

            this.Face = (BlockFace)await stream.ReadVarIntAsync();

            this.CursorX = await stream.ReadFloatAsync();

            this.CursorY = await stream.ReadFloatAsync();

            this.CursorZ = await stream.ReadFloatAsync();

            this.InsideBlock = await stream.ReadBooleanAsync();
        }
Exemplo n.º 4
0
        public override async Task PopulateAsync()
        {
            using (var stream = new MinecraftStream(this.PacketData))
            {
                Location = await stream.ReadPositionAsync();

                Face = (BlockFace)await stream.ReadByteAsync();

                Hand = await stream.ReadVarIntAsync();

                CursorX = await stream.ReadFloatAsync();

                CursorY = await stream.ReadFloatAsync();

                CursorZ = await stream.ReadFloatAsync();
            }
        }
Exemplo n.º 5
0
        public override async Task PopulateAsync()
        {
            using (var stream = new MinecraftStream(this.PacketData))
            {
                this.Transform = new Transform(await stream.ReadDoubleAsync(), await stream.ReadDoubleAsync(), await stream.ReadDoubleAsync(), await stream.ReadFloatAsync(), await stream.ReadFloatAsync());

                this.Flags = (PositionFlags)await stream.ReadByteAsync();

                this.TeleportId = await stream.ReadVarIntAsync();
            }
        }