APIs - 1attila/Conduit GitHub Wiki

Conduit provides some useful and easy to use apis to fetch data or execute commands.

mconduit.Text

Contains all the utilities to generate json-text that can be used in tellraws.

class Text

Utility class to use minecraft text

Methods

__init__(self, text: Union[str, "Text"], color: Color=Color.White, *styles: Style) -> NoReturn

Creates a Text object with the given string (or the given Text object), color and styles

Params:

  • text: Union[str, "Text"]: the string you want to use or the Text object you want to copy.

  • color: Color=Color.White: the color of the text, white by default.

  • *styles: Style: all the styles you want to use.

__call__(self, text: "Text") -> "Text"

Appends the text

Params:

  • text: "Text": the text you want to concatenate.