Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

ICommandSender

The ICommandSender interface is used the base of each Entity and also some other types in CraftTweaker.
Each IEntity and IPlayer implements this!

Importing the package

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.command.ICommandSender;

ZenGetter

ZenGetterReturn Type
ZenGetter
displayName
Return Type
string
ZenGetter
position
Return Type
IBlockPos
ZenGetter
world
Return Type
IWorld
ZenGetter
server
Return Type
IServer

ZenMethods

Send Message

Takes a String Returns void (nothing).

script.zs
sender.sendMessage(String text);

Send Rich Text Message

Takes an ITextComponent Returns void (nothing).

script.zs
sender.sendRichTextMessage(ITextComponent textComponent);