-
-
Notifications
You must be signed in to change notification settings - Fork 33
Chat Functions
the chat functions are:
Example: chat.log(text);
sends the raw of TextHelper
to the in game chat.
-
before 1.1.3
waslog(String)
and didn't automatically do type-coersion.
Example: chat.log(1);
This logs a string to the client chat in game. using .toString()
on the input.
Example: chat.say("Hello World!");
This sends a string to the server chat so everyone can see it, or so you can send a command.
Example: chat.creatTextHelperFromString("Hello, World!");
returns a text helper from a provided string.
Example: chat.createTextHelperFromJSON(json);
returns a text helper from provided json. look at an existing recv_message text helper for some reference.
Example: chat.title("Test", textHelper, fadeInTicks, remainTicks, fadeOutTicks);
display a large title in the middle of the screen.
Example: chat.actionbar(text, tinted)
displays a small title above the hotbar (like the item names)
Example: chat.toast(title, description)
display a toast (the message in the top right).