pi.tool
Class Text

Object
  extended by pi.tool.Text

public class Text
extends Object

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

at

public Text at(Vec pos)
Set the position of the text


with

public Text with(Block block)
Set the block type to use for drawing


with

public Text with(String fontName,
                 int fontSizeInPoints)
Set the font


withOrientation

public Text withOrientation(Vec.Unit u,
                            Vec.Unit v)
Set the orientation of the text


draw

public void draw(String text)
Draw a text with the current settings in the Minecraft world