public final class Driver
extends java.lang.Object
Environment - no driver is
needed in that case.| Modifier and Type | Method and Description |
|---|---|
static void |
add(Block driver)
Registers a new block driver.
|
static void |
add(Converter converter)
Registers a new type converter.
|
static void |
add(Item driver)
Registers a new item driver.
|
static Item |
driverFor(net.minecraft.item.ItemStack stack)
Looks up a driver for the specified item stack.
|
static Block |
driverFor(net.minecraft.world.World world,
int x,
int y,
int z)
Looks up a driver for the block at the specified position in the
specified world.
|
public static DriverAPI instance
public static void add(Block driver)
driver - the driver to register.public static void add(Item driver)
driver - the driver to register.public static void add(Converter converter)
converter - the converter to register.public static Block driverFor(net.minecraft.world.World world, int x, int y, int z)
add(li.cil.oc.api.driver.Block).world - the world containing the block.x - the X coordinate of the block.y - the Y coordinate of the block.z - the Z coordinate of the block.public static Item driverFor(net.minecraft.item.ItemStack stack)
stack - the item stack to get a driver for.