Objectpi.tool.Text
public class Text
A tool to draw text in the Minecraft world.
Example:
text.with("Arial", 18).xyz2(Vec.xyz(0, 2, 0)).draw("Hello, world!").
Method Summary | |
---|---|
Text |
at(Vec pos)
Set the position of the text |
void |
draw(String text)
Draw a text with the current settings in the Minecraft world |
Text |
with(Block block)
Set the block type to use for drawing |
Text |
with(String fontName,
int fontSizeInPoints)
Set the font |
Text |
withOrientation(Vec.Unit u,
Vec.Unit v)
Set the orientation of the text |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Text at(Vec pos)
public Text with(Block block)
public Text with(String fontName, int fontSizeInPoints)
public Text withOrientation(Vec.Unit u, Vec.Unit v)
public void draw(String text)