Esempio n. 1
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.WindowId = await stream.ReadByteAsync();

            this.ActionNumber = await stream.ReadShortAsync();

            this.Accepted = await stream.ReadBooleanAsync();
        }
Esempio n. 2
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.Status = (DiggingStatus)await stream.ReadVarIntAsync();

            this.Location = await stream.ReadPositionAsync();

            this.Face = (BlockFace)await stream.ReadByteAsync();
        }
Esempio n. 3
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.WindowId = await stream.ReadByteAsync();

            this.RecipeId = await stream.ReadStringAsync();

            this.MakeAll = await stream.ReadBooleanAsync();
        }
Esempio n. 4
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();
            }
        }
Esempio 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();
            }
        }
Esempio n. 6
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.WindowId = await stream.ReadUnsignedByteAsync();

            this.ClickedSlot = await stream.ReadShortAsync();

            this.Button = await stream.ReadByteAsync();

            this.ActionNumber = await stream.ReadShortAsync();

            this.Mode = (InventoryOperationMode)await stream.ReadVarIntAsync();

            this.Item = await stream.ReadSlotAsync();
        }
Esempio n. 7
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.Locale = await stream.ReadStringAsync();

            this.ViewDistance = await stream.ReadByteAsync();

            this.ChatMode = await stream.ReadVarIntAsync();

            this.ChatColors = await stream.ReadBooleanAsync();

            this.SkinParts = await stream.ReadUnsignedByteAsync();

            this.MainHand = await stream.ReadVarIntAsync();
        }
        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();
            }
        }
Esempio n. 9
0
        public override async Task PopulateAsync()
        {
            using (var stream = new MinecraftStream(this.PacketData))
            {
                Locale = await stream.ReadStringAsync();

                ViewDistance = await stream.ReadByteAsync();

                ChatMode = await stream.ReadIntAsync();

                ChatColors = await stream.ReadBooleanAsync();

                SkinParts = await stream.ReadUnsignedByteAsync();

                MainHand = await stream.ReadVarIntAsync();
            }
        }
Esempio n. 10
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.WindowId = await stream.ReadByteAsync();

            this.ButtonId = await stream.ReadByteAsync();
        }