dan200.turtle.api
Class TurtleAPI

java.lang.Object
  extended by dan200.turtle.api.TurtleAPI

public class TurtleAPI
extends java.lang.Object

The static entry point to the ComputerCraft Turtle Upgrade API. Members in this class must be called after mod_CCTurtle has been initialised, but may be called before it is fully loaded.


Constructor Summary
TurtleAPI()
           
 
Method Summary
static void registerUpgrade(ITurtleUpgrade upgrade)
          Registers a new turtle upgrade for use in ComputerCraft.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurtleAPI

public TurtleAPI()
Method Detail

registerUpgrade

public static void registerUpgrade(ITurtleUpgrade upgrade)
Registers a new turtle upgrade for use in ComputerCraft. After calling this, users should be able to craft Turtles with your new upgrade. It is recommended to call this during the load() method of your mod.

Throws:
java.lang.Exception - if you try to register an upgrade with an already used or reserved upgradeID
See Also:
ITurtleUpgrade