Class DeserializedChatComponent

java.lang.Object
me.neznamy.tab.api.chat.IChatBaseComponent
me.neznamy.tab.api.chat.DeserializedChatComponent

public class DeserializedChatComponent extends IChatBaseComponent
A class representing a chat component that was serialized before, but deserialize was requested in PacketPlayOutPlayerInfo packet. This is used to read and modify the packet and then rewrite it. However, display name components must be deserialized to properly forward them in the new packet, but its value is not actually used anywhere.

To avoid this heavy and completely unnecessary operation, the original string is saved and returned during serialization. If any read/write operation is performed, the string is fully deserialized and this object will act like a normal chat component.