dan200.computer.api
Class ComputerCraftAPI

java.lang.Object
  extended by dan200.computer.api.ComputerCraftAPI

public class ComputerCraftAPI
extends java.lang.Object

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


Constructor Summary
ComputerCraftAPI()
           
 
Method Summary
static void registerExternalPeripheral(java.lang.Class<? extends net.minecraft.tileentity.TileEntity> clazz, IPeripheralHandler handler)
          Registers a peripheral handler for a TileEntity that you do not have access to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputerCraftAPI

public ComputerCraftAPI()
Method Detail

registerExternalPeripheral

public static void registerExternalPeripheral(java.lang.Class<? extends net.minecraft.tileentity.TileEntity> clazz,
                                              IPeripheralHandler handler)
Registers a peripheral handler for a TileEntity that you do not have access to. Only use this if you want to expose IPeripheral on a TileEntity from another mod. For your own mod, just implement IPeripheral on the TileEntity directly.

See Also:
IPeripheral, IPeripheralHandler