drawText

public abstract void drawText(int x, int y, MapFont font, String text)

Render text to the map using fancy formatting. Newline (\n) characters will move down one line and return to the original column, and the text color can be changed using sequences such as "§12;", replacing 12 with the palette index of the color (see MapPalette).

Parameters

x

The column to start rendering on.

y

The row to start rendering on.

font

The font to use.

text

The formatted text to render.