public interface DriverAPI
| Modifier and Type | Method and Description |
|---|---|
void |
add(Block driver)
Registers a new driver for a block component.
|
void |
add(Converter converter)
Registers a new type converter.
|
void |
add(Item driver)
Registers a new driver for an item component.
|
Item |
driverFor(net.minecraft.item.ItemStack stack)
Looks up a driver for the specified item stack.
|
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.
|
void add(Block driver)
driver - the driver for a block component.void add(Item driver)
driver - the driver for an item component.void add(Converter converter)
converter - the converter to register.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.Item driverFor(net.minecraft.item.ItemStack stack)
stack - the item stack to get a driver for.