Skip to content

Conversation

@BlockyTheDev
Copy link
Member

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CommunityRadar Fabric mod from Minecraft version 1.21.10 to 1.21.11, migrating from Yarn mappings to official Mojang mappings. This involves significant refactoring of class and package names throughout the codebase to align with Mojang's naming conventions.

Key changes:

  • Migration from Yarn to Mojang mappings (e.g., TextComponent, MinecraftClientMinecraft, PlayerListEntryPlayerInfo)
  • Updated dependency versions (Fabric Loader 0.17.2 → 0.18.1, Fabric API, Fabric Loom)
  • Renamed mixin classes to match new Minecraft class names (e.g., ChatHudMixinChatComponentMixin, PlayerEntityRendererMixinAvatarRendererMixin)
  • Improved naming consistency (MODIDMOD_ID, getModid()getModId())

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
gradle/libs.versions.toml Updated Minecraft to 1.21.11, Fabric Loader to 0.18.1, Fabric API to 0.139.4, Fabric Loom to 1.14-SNAPSHOT, removed Yarn mappings
gradle.properties Updated mod version to 1.0.0-SNAPSHOT+1.21.11
build.gradle.kts Changed from Yarn mappings to official Mojang mappings
src/main/resources/communityradar.mixins.json Renamed mixin classes to match Mojang naming (ChatHud→ChatComponent, PlayerEntityRenderer→AvatarRenderer, etc.)
src/main/java/io/github/communityradargg/fabric/utils/Utils.java Migrated to Mojang API classes, updated method calls to match new API signatures
src/main/java/io/github/communityradargg/fabric/utils/RadarMessage.java Changed Text API to Component API, renamed toText() to toComponent()
src/main/java/io/github/communityradargg/fabric/mixin/PlayerTabOverlayMixin.java Renamed from PlayerListHudMixin, updated to use Mojang class names and method signatures
src/main/java/io/github/communityradargg/fabric/mixin/ChatComponentMixin.java Renamed from ChatHudMixin, updated to use Component API and new method signatures
src/main/java/io/github/communityradargg/fabric/mixin/PlayerEntityRendererMixin.java Deleted - replaced by AvatarRendererMixin to match Mojang naming
src/main/java/io/github/communityradargg/fabric/mixin/AvatarRendererMixin.java New file replacing PlayerEntityRendererMixin with updated Mojang API usage
src/main/java/io/github/communityradargg/fabric/mixin/AvatarRenderStateMixin.java Renamed from PlayerEntityRenderStateMixin to match Mojang naming
src/main/java/io/github/communityradargg/fabric/commands/RadarCommand.java Updated to use Mojang API classes, migrated permission system from integer levels to PermissionLevel enum
src/main/java/io/github/communityradargg/fabric/accessors/AvatarRenderStateAccessor.java Renamed from PlayerEntityRenderStateAccessor to match Mojang naming
src/main/java/io/github/communityradargg/fabric/CommunityRadarMod.java Improved naming consistency (MODID→MOD_ID, getModid()→getModId())

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* @param oldNameTagText The old text that should be extended, if needed.
* @return The new text for the including the radar prefix.
* @param oldNameTagText The old component that should be extended, if needed.
* @return The new component for the including the radar prefix.
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar issue in the documentation: "The new component for the including the radar prefix" should be "The new component including the radar prefix" (remove "for the").

Suggested change
* @return The new component for the including the radar prefix.
* @return The new component including the radar prefix.

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/main/java/io/github/communityradargg/fabric/mixin/ChatComponentMixin.java:54

  • The null check for plainText has been removed. In the old code, there was a check if (plainText == null) before processing the chat message. While Component.getString() typically doesn't return null in Minecraft, removing this safety check could potentially cause issues if the behavior changes. Consider adding a null check or empty string check: if (component.getString() == null || component.getString().isEmpty()).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@BlockyTheDev BlockyTheDev merged commit ec4125c into main Dec 9, 2025
1 check passed
@BlockyTheDev BlockyTheDev deleted the feature/main/1.21.11-update branch December 9, 2025 18:30
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