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(); }
public async Task ReadAsync(MinecraftStream stream) { this.WindowId = await stream.ReadByteAsync(); this.ActionNumber = await stream.ReadShortAsync(); this.Accepted = await stream.ReadBooleanAsync(); }
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(); }