feat: add support for 1.21.11#3578
Merged
dmulloy2 merged 2 commits intodmulloy2:masterfrom Dec 16, 2025
Merged
Conversation
derklaro
reviewed
Dec 13, 2025
dmulloy2
approved these changes
Dec 16, 2025
There was a problem hiding this comment.
Pull request overview
This PR adds support for Minecraft version 1.21.11 (Mounts of Mayhem update) by updating dependencies, API mappings, and handling various package/class renames in the Minecraft codebase.
Key Changes:
- Updated Minecraft version from 1.21.10 to 1.21.11 with corresponding CraftBukkit package version changes (v1_21_R6 → v1_21_R7)
- Updated multiple dependencies including Netty, JUnit, Mockito, Kyori Adventure, and ByteBuddy
- Adapted to Minecraft API changes including class renames (ResourceLocation → Identifier), package relocations, and new packet/enum types
Reviewed changes
Copilot reviewed 18 out of 19 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| build.gradle.kts | Updated Minecraft version to 1.21.11 and bumped dependencies (Netty, JUnit, Gradle plugins, ByteBuddy, Kyori Adventure, Mockito) |
| src/main/java/com/comphenix/protocol/utility/MinecraftVersion.java | Added v1_21_11 version constant and updated LATEST to reference it |
| src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java | Updated class resolution to handle renamed Minecraft classes (Identifier, new fallback paths) |
| src/main/java/com/comphenix/protocol/wrappers/EnumWrappers.java | Added STAB enum value to PlayerDigType and updated SoundCategory class resolution |
| src/main/java/com/comphenix/protocol/PacketType.java | Added MountScreenOpen as new packet name for OPEN_WINDOW_HORSE |
| src/main/java/com/comphenix/protocol/utility/ZeroBuffer.java | Implemented new ByteBuf interface methods for Netty compatibility (ByteProcessor, FileChannel, CharSequence operations) |
| src/main/java/com/comphenix/protocol/injector/netty/channel/NettyEventLoopProxy.java | Added register(ChannelPromise) method override for Netty compatibility |
| src/main/java/com/comphenix/protocol/injector/netty/channel/NettyChannelProxy.java | Added id() and hasAttr() method overrides for Netty compatibility |
| src/test/java/com/comphenix/protocol/utility/MinecraftReflectionTestUtil.java | Updated test target version to 1.21.11 and package version to v1_21_R7 |
| src/test/java/com/comphenix/protocol/BukkitInitialization.java | Updated CraftBukkit imports to v1_21_R7, replaced ResourceLocation with Identifier, and updated ReloadableServerResources call to use LevelBasedPermissionSet |
| src/test/java/com/comphenix/protocol/wrappers/WrappedStreamCodecTests.java | Updated CraftBukkit imports from v1_21_R6 to v1_21_R7 |
| src/test/java/com/comphenix/protocol/wrappers/WrappedDataWatcherTest.java | Updated CraftBukkit imports and ThrownEgg package path to reflect Minecraft's class reorganization |
| src/test/java/com/comphenix/protocol/wrappers/WrappedComponentStyleTest.java | Updated JSON field order assertion and removed resolved TODO comment |
| src/test/java/com/comphenix/protocol/wrappers/WrappedBlockDataTest.java | Updated CraftBukkit imports from v1_21_R6 to v1_21_R7 |
| src/test/java/com/comphenix/protocol/wrappers/WrappedAttributeTest.java | Replaced ResourceLocation with Identifier throughout the test |
| src/test/java/com/comphenix/protocol/wrappers/AutoWrapperTest.java | Replaced ResourceLocation with Identifier in test cases |
| src/test/java/com/comphenix/protocol/utility/MinecraftReflectionTest.java | Updated CraftBukkit imports from v1_21_R6 to v1_21_R7 |
| src/test/java/com/comphenix/protocol/injector/EntityUtilitiesTest.java | Updated CraftBukkit imports from v1_21_R6 to v1_21_R7 |
| src/test/java/com/comphenix/protocol/events/PacketContainerTest.java | Updated imports: replaced ResourceLocation with Identifier, updated Cat/Frog variant package paths, and cleaned up unused imports |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Owner
|
great work, thank you! |
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.
No description provided.