Exemple #1
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();
        }
Exemple #2
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.WindowId = await stream.ReadByteAsync();

            this.ActionNumber = await stream.ReadShortAsync();

            this.Accepted = await stream.ReadBooleanAsync();
        }
Exemple #3
0
        public async Task ReadAsync(MinecraftStream stream)
        {
            this.ClickedSlot = await stream.ReadShortAsync();

            this.ClickedItem = await stream.ReadSlotAsync();
        }
 public async Task ReadAsync(MinecraftStream stream)
 {
     this.Slot = await stream.ReadShortAsync();
 }