Exemplo n.º 1
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.Status = (DiggingStatus)await stream.ReadVarIntAsync();

            this.Location = await stream.ReadPositionAsync();

            this.Face = (BlockFace)await stream.ReadByteAsync();
        }
Exemplo n.º 2
0
        public override async Task PopulateAsync()
        {
            using (var stream = new MinecraftStream(this.PacketData))
            {
                Location = await stream.ReadPositionAsync();

                BlockId = await stream.ReadVarIntAsync();
            }
        }
Exemplo n.º 3
0
        public async override Task PopulateAsync()
        {
            using (var stream = new MinecraftStream(this.PacketData))
            {
                this.Status = await stream.ReadVarIntAsync();

                this.Location = await stream.ReadPositionAsync();

                this.Face = await stream.ReadByteAsync();
            }
        }
Exemplo n.º 4
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.º 5
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();
            }
        }