feat(minecraft): Update to 1.21.11 #4244
Open
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.
SpogneAPI | Sponge
This pull request updates Sponge to align with recent changes in Minecraft's permissions and command infrastructure, particularly focusing on replacing integer-based permission levels with the new
PermissionLevelandPermissionSetabstractions. Additionally, it updates several APIs and accessors to reflect upstream changes, and ensures compatibility with the latest Minecraft snapshot.Migration to new permission system and Minecraft version:
PermissionLevelandPermissionSet, including command sources, player permissions, and login bypass logic. This affects method signatures, field types, and invoker/accessor interfaces throughout the codebase. [1] [2] [3] [4] [5] [6] [7] [8] [9]25w41aingradle.propertiesto track the latest snapshot.API and accessor updates for upstream changes:
ServerLeveltoBaseCommandBlockAccessor::invoker$createSource, and updatingTradeOfferGeneratorWrapper::getOfferto accept aServerLevelparameter. [1] [2]ZombifiedPiglinAccessorto usepersistentAngerEndTime(along) instead of the previousremainingPersistentAngerTime(anint), and updated related data provider logic. [1] [2]Game rules and world data improvements:
GameRules.RULE_PVPinstead of relying on a server method, ensuring consistency with Minecraft's rule system.These changes collectively modernize the permissions and command handling in Sponge, ensuring compatibility with the latest Minecraft server internals and improving maintainability going forward.