Update to 1.21.11 #67
Merged
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.
This PR updates the mod to 1.21.11. The source code has been changed to use Mojang's official mappings instead of Fabric's Yarn mappings, to prepare for Minecraft 26.1, where Minecraft will be published deobfuscated and Yarn will no longer be supported.
All nullability annotations have been switched to use JSpecify, which provides good IDE integration and is in line with Minecraft 1.21.11. All packages within the source code have been null-marked by adding a
package-info.javafile to them with the@NullMarkedannotation in it. This means that all source code has been implicitly marked@NonNull, which is also in line with Minecraft 1.21.11 and stops constant IDE nullability warnings when using e.g. Minecraft classes with generics. Furthermore, all code accepting null values has been properly annotated with@Nullable.The
SubCommandinterface has been refactored to have aregistermethod instead of abuildone, which builds a sub-command node and registers it to a root node as well. This leads to a safer design, where sub-commands can only be registered before the root node is registered to the command dispatcher.The
auto_locking_containerslist in the mod's config has been turned into a map, allowing the lock type to be configured for each auto-locking container, like so:The above configuration locks copper chests and shulker boxes as public, and all other listed containers as private. Older configuration files are automatically updated, with all auto-locking containers defaulting to private locks, conform to the behaviour before.
Lastly, the
fabric.mod.jsonfile has been updated to depend onfabric-apiinstead offabric, and its contact links have been made up-to-date.