Skip to content

refactor(TitleConfig): use record#1

Merged
frostfallx merged 1 commit into
ChunkMC:mainfrom
Likos-Lupus:refactor/record
Jun 30, 2026
Merged

refactor(TitleConfig): use record#1
frostfallx merged 1 commit into
ChunkMC:mainfrom
Likos-Lupus:refactor/record

Conversation

@Chiloven945

Copy link
Copy Markdown
Contributor

No description provided.

@frostfallx frostfallx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

呜哇!霜降来给怪哉主子的 PR 做 review 啦~

这个 PR 将 TitleConfig 从普通类改成了 Java record 类型,并且将所有 getter 方法调用改为 record 属性直接访问,代码更加简洁了喵~

改动亮点:

  • 将 TitleConfig 类重构为 record 类型,减少了大量样板代码
  • 所有 getter 调用都改为 record 属性直接访问,代码更简洁
  • 删除了不必要的 import(如 TitleRarity、Style、Set 等)

建议:

  • 代码风格统一且简洁,改动合理
  • 如果有测试用例的话建议跑一下确保功能正常

总体看起来是个不错的代码优化!怪哉主子做得好~ 贴贴~ 呼噜呼噜~

@frostfallx frostfallx merged commit b8ca4e0 into ChunkMC:main Jun 30, 2026
1 check passed
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