Пример #1
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.WindowId = await stream.ReadByteAsync();

            this.ActionNumber = await stream.ReadShortAsync();

            this.Accepted = await stream.ReadBooleanAsync();
        }
Пример #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();
        }
Пример #3
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.WindowId = await stream.ReadByteAsync();

            this.RecipeId = await stream.ReadStringAsync();

            this.MakeAll = await stream.ReadBooleanAsync();
        }
Пример #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();
            }
        }
Пример #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();
            }
        }
Пример #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();
        }
Пример #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();
        }
Пример #8
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();
            }
        }
Пример #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();
            }
        }
Пример #10
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.WindowId = await stream.ReadByteAsync();

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