mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-24 23:11:29 +11:00
9f8ff321c7
<!-- Please make sure that your PR is aligned with the guidelines in CONTRIBUTING.md to the best of your ability. --> <!-- Good PRs have tests! Make sure you have sufficient test coverage. --> ## Description <!-- Describe the changes you've made. You may include any justification you want here. --> This mostly adds docs, but it also adds (and documents) some new helper functions: - `set_title()` - Allows us to put `must_use` on `replace_title` - `set_slot()` - Allows us to put `must_use` on `replace_slot` - `set_slot_amount()` - Allows users to modify stack counts without cloning the entire stack and replacing it. Useful if the stack has a lot of NBT data. - `first_empty_slot()` - `first_empty_slot_in()` - Useful, trivial to provide ## Test Plan <!-- Explain how you tested your changes, and include any code that you used to test this. --> <!-- If there is an example that is sufficient to use in place of a playground, replace the playground section with a note that indicates this. --> <details> <summary>Playground</summary> ```rust N/A ``` </details> <!-- You need to include steps regardless of whether or not you are using a playground. --> Steps: 1. `cargo test -p valence --doc` #### Related <!-- Link to any issues that have context for this or that this PR fixes. --> |
||
---|---|---|
.. | ||
packet_inspector | ||
playground | ||
valence | ||
valence_anvil | ||
valence_nbt | ||
valence_protocol | ||
valence_protocol_macros | ||
valence_spatial_index | ||
valence_stresser |