Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(devtools): remove material #109

Merged
merged 4 commits into from
Dec 16, 2024

Conversation

smartcmd
Copy link
Contributor

@smartcmd smartcmd commented Dec 16, 2024

From the recent changes discovered in BDS, mojang is removing the material system from bedrock edition. This is reasonable because java edition have removed material.

This PR remove the function to dump materials.json in devtools, material related classes are also removed since devtools is the only thing that uses these classes.

specialTools field in block_types.json is also removed because mojang have added xxx_tier_destructible block tags.

The following fields are moved to block_states.json from materials.json:

  • requiresCorrectToolForDrops (old name is isAlwaysDestroyable)
  • isSolid
  • translucency

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 8.04%. Comparing base (692278c) to head (f11ed79).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##            main    #109      +/-   ##
========================================
+ Coverage   7.98%   8.04%   +0.06%     
========================================
  Files         62      62              
  Lines       4373    4373              
  Branches    1894    1894              
========================================
+ Hits         349     352       +3     
  Misses      3765    3765              
+ Partials     259     256       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wu-vincent wu-vincent merged commit a749b61 into EndstoneMC:main Dec 16, 2024
9 checks passed
wu-vincent added a commit that referenced this pull request Dec 18, 2024
* Update server_list_ping_event.h and make fields public

* use proper setters

* add set guid method for ServerListPingEvent

* docs: update README.md

* chore: update symbols.toml for BDS v1.21.50 Windows (not supported yet)

* fix: add missing virtual functions in IResourcePackRepository

* fix: ScriptingGameplayEvent variants

* fix: Dimension class members

* fix: PlayerGameplayEvent variants

* fix: update enums

* fix: Block and BlockLegacy

* fix: Item and ItemRegistry

* fix: Actor class

* fix: BlockSource and BinaryStream

* fix: correct size assertion for Block class

* fix: prevent server crash when comments are present in `world_resource_packs.json`

Fix #100

* feat: improve error logging to include exception details when JSON loading fails

* chore: update symbols.toml for BDS v1.21.50 Linux

* fix: make Level::_cerealContext() a pure virtual function.

* docs: update CHANGELOG.md

* deps: switch to FetchContent for funchook

* fix(event): ensure ScriptMessageEvent is invoked correctly

* fix: remove funchook in conanfile.py

* fix: add missing dependencies in CMakeLists.txt

* fix: compilation error in ScriptingEventCoordinator

* fix: remove funchook from conanfile.py

* feat: add `Block::canContainLiquid` (#107)

* refactor(devtools): remove deprecated material (#109)

* fix: fix material.h and material_type.h

* refactor: rename canDropWithAnyTool to requiresCorrectToolForDrops

* refactor: remove material related things since these things are unused

* docs: add a FIXME notice to biome.h

* fix: update Biome class members

* ci: fix static_assert macros for class size checks

* fix: player inventory not being updated after calling `clear`

close #108

* refactor: correct headers

* feat: add an overload for `/ban` command for player name auto-completion

* refactor: update members in CommandRegistry

* chore(deps): bump scikit-build-core-conan version in pyproject.toml

* fix: ensure the correct plugin loader is selected when loading from file (#110)

* fix: fix EndstonePluginManager::loadPlugin #98

* refactor: improve plugin loading logic in EndstonePluginManager

* refactor: revert back to range-based loop for plugin loading

---------

Co-authored-by: Vincent <[email protected]>

* Update server_list_ping_event.h and make fields public

* use proper setters

* add set guid method for ServerListPingEvent

* docs: fix documentation for the setters

* feat: add python bindings for the setters in `ServerListPingEvent`

* docs: update documentation to improve consistency

---------

Co-authored-by: Vincent <[email protected]>
Co-authored-by: daoge <[email protected]>
Co-authored-by: engsr6982 <[email protected]>
@smartcmd smartcmd deleted the feat/devtools-remove-material branch February 18, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants