Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Support components [WIP] #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Support components [WIP] #8

wants to merge 1 commit into from

Conversation

Electroid
Copy link

Instead of using static string formatting, a SimpleChannel uses #getFormat() to dynamically generate a component message format. This means implementors inject special components (ie. click name to teleport).

This is a breaking change because of the formatting; however, you can still send messages and broadcasts as a string (it's converted to TextComponent).

@Electroid Electroid changed the title Support components Support components [WIP] Nov 9, 2015
@jedediah
Copy link
Member

jedediah commented Nov 9, 2015

Nice, but in order to use this, the components will have to go through our custom rendering layer somehow. I guess we can do that by overriding sendMessageToViewer, which we already do in a few places anyway.

It will also have to work with ChatModerator, which will be interesting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants