Skip to content

"Chat" components #110

@kashike

Description

@kashike

I suggest renaming all of the existing "chat" components, and moving them to their own package.

This includes:

  • event.ClickEvent
  • event.HoverEvent
  • util.ChatComponentProcessor
  • util.ChatComponentScore
  • util.ChatComponentSelector
  • util.ChatComponentStyle
  • util.ChatComponentText
  • util.ChatComponentTranslation
  • util.ChatComponentTranslationFormatException
  • util.ChatStyle
  • util.EnumChatFormatting
  • util.IChatComponent

The "chat component" classes aren't used for chat only, so they should probably be renamed to remove "Chat".

Suggested renames:

  • event.ClickEvent -> text.event.ClickEvent
  • event.HoverEvent -> text.event.HoverEvent
  • util.ChatComponentProcessor -> text.ComponentProcessor
  • util.ChatComponentScore -> text.ScoreComponent or text.ComponentScore
  • util.ChatComponentSelector -> text.SelectorComponent or text.ComponentSelector
  • util.ChatComponentStyle -> text.BaseComponent or text.ComponentBase
  • util.ChatComponentText -> text.TextComponent or text.ComponentText
  • util.ChatComponentTranslation -> text.TranslatableComponent or text.ComponentTranslatable
  • util.ChatComponentTranslationFormatException -> text.TranslatableComponentFormatException or text.ComponentTranslatableFormatException
  • util.ChatStyle -> text.Style or text.ComponentStyle
  • util.EnumChatFormatting -> text.EnumComponentFormat
  • util.IChatComponent -> text.IComponent

Along with this, method renames:

  • func_150256_b: getChatStyle -> getStyle
  • func_150255_a: setChatStyle -> setStyle
  • func_150235_h: getChatClickEvent -> getClickEvent
  • func_150241_a: setChatClickEvent -> setClickEvent
  • func_150210_i: getChatHoverEvent -> getHoverEvent
  • func_150209_a: setChatHoverEvent -> setHoverEvent

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions