1
0
Fork 0
mirror of https://github.com/italicsjenga/valence.git synced 2025-02-03 09:06:35 +11:00
Commit graph

1 commit

Author SHA1 Message Date
Terminator
b83b9f76ed
Expose enchantments to Rust ()
* Expose extracted enchantments to Rust.

* Give enchantments a `level: i16` field.

* Update enchantment derive impls

* Restructure how enchants are exposed to Rust through C-like enums

* Update build/enchant.rs

Co-authored-by: Ryan Johnson <ryanj00a@gmail.com>

* Update build/enchant.rs

Co-authored-by: Ryan Johnson <ryanj00a@gmail.com>

* Move enchantment sources to their own struct.

* make id() function return it's discriminant instead of matching

Co-authored-by: Ryan Johnson <ryanj00a@gmail.com>
2022-10-03 13:19:42 -07:00