Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prune ChatUtils and related uses #609

Closed
wants to merge 1 commit into from

Conversation

Protonull
Copy link
Contributor

Prunes a lot of unused and deprecated utilities related to chat components, as well as improving others.

Zero-Impact removals

  • Removed ChatUtils.COLOURS
  • Removed ChatUtils.fromRGB()
  • Removed ChatUtils.collapseColour()
  • Removed ChatUtils.isNormalisedComponent()
  • Removed ChatUtils.normaliseComponent()
  • Removed ChatUtils.upgradeLegacyString()
  • Removed ChatUtils.cloneComponent()
  • Removed ChatUtils.createItemHoverEvent()

Replacements

  • Removed ChatUtils.stringify(), ItemUtils.getItemName(), PotionUtils.getPotionNiceName(), and PotionUtils.getEffectNiceName() in favour of ChatUtils.translate()

  • Removed ChatUtils.newComponent() in favour of ChatUtils.nonItalic()

Cleanups

  • Cleaned up Componentify and fixed a potential NPE.

Prunes a lot of unused and deprecated utilities related to chat
components, as well as improving others.
@Protonull Protonull closed this Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant