Repository navigation
Add block registry settings and config reset - #63
Merged
Merged
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 4 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
osipxd
force-pushed
the
feature/block-registries-config
branch
from
November 9, 2026 13:14
9a39822 to
254ddfd
Compare
osipxd
force-pushed
the
feature/block-registries-config
branch
from
November 9, 2026 13:15
254ddfd to
ccc8333
Compare
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the block-registry controls and configuration reset changes.
No open issues 🎉
What changed in this PR
Extends Mimic’s configuration controls to block registries and adds command-based resets, building on the existing block API and command improvements.
Changes:
- Adds block-registry disable settings, commands, and interactive toggles while protecting
mimicandminecraft. - Adds per-option resets and distinguishes automatic provider selection from pinned selections.
- Makes the block-breaking tool optional for Kotlin callers, updates the API snapshot, and adds configuration tests.
| File | Description |
|---|---|
mimic-bukkit/src/test/kotlin/impl/mimic/MimicBlockRegistryTest.kt |
Tests exclusion of disabled block registries. |
mimic-bukkit/src/test/kotlin/config/MimicConfigTest.kt |
Tests protected registries and persisted resets. |
mimic-bukkit/src/main/kotlin/MimicImpl.kt |
Passes configuration into block-registry wrappers. |
mimic-bukkit/src/main/kotlin/config/MimicConfig.kt |
Adds block-registry settings, resets, and updated header text. |
mimic-bukkit/src/main/kotlin/command/ConfigMessage.kt |
Adds registry toggles, automatic-selection labels, and reset links. |
mimic-bukkit/src/main/kotlin/command/ConfigCommand.kt |
Adds block-registry controls and per-option reset commands. |
mimic-bukkit/src/main/kotlin/command/BlocksSubcommand.kt |
Uses the optional tool parameter when breaking blocks. |
mimic-bukkit/src/main/kotlin/blocks/WrappedBlockRegistry.kt |
Applies configured block-registry disable settings. |
mimic-api/src/main/kotlin/blocks/BlockRegistry.kt |
Defaults the Kotlin tool argument to null. |
mimic-api/api/mimic-api.api |
Records the generated default-argument API method. |
CHANGELOG.md |
Documents block-registry controls and reset commands. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #62 and #44.
disabled-block-registries: a new config option with/mimic config disabled-block-registries add|removeand toggles in the interactive config, working likedisabled-items-registries.mimicandminecraftcan't be disabled./mimic config reset [option]: resets any config option to its default. Until now, a preferred provider could only go back to automatic selection by editingconfig.ymland restarting.(auto)when a provider is selected automatically, keeps every provider clickable so the current one can be pinned, and shows a clickableresetwhen one is pinned.BlockRegistry.breakBlock:tooldefaults tonullfor Kotlin callers, sobreakBlock(block, dropsConsumer = consumer)works. The overloads for Java stay.config.ymlheader now points to/mimicinstead of the removed/mimic info.🤖 Generated with Claude Code