dan200.computer.api
Class ComputerCraftAPI
java.lang.Object
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.
Method Summary |
static net.minecraft.creativetab.CreativeTabs |
getCreativeTab()
Get the creative mode tab that ComputerCraft items can be found on. |
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 |
ComputerCraftAPI
public ComputerCraftAPI()
getCreativeTab
public static net.minecraft.creativetab.CreativeTabs getCreativeTab()
- Get the creative mode tab that ComputerCraft items can be found on.
Use this to add your peripherals to ComputerCraft's tab.
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