You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though this breaks quite a bit I personally think these are changes that should be made for the future, because the components are more and more used in a lot of other places as well. +1
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
ortext.ComponentScore
util.ChatComponentSelector
->text.SelectorComponent
ortext.ComponentSelector
util.ChatComponentStyle
->text.BaseComponent
ortext.ComponentBase
util.ChatComponentText
->text.TextComponent
ortext.ComponentText
util.ChatComponentTranslation
->text.TranslatableComponent
ortext.ComponentTranslatable
util.ChatComponentTranslationFormatException
->text.TranslatableComponentFormatException
ortext.ComponentTranslatableFormatException
util.ChatStyle
->text.Style
ortext.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
The text was updated successfully, but these errors were encountered: