@FunctionalInterface
public interface IPeripheralProvider
Modifier and Type | Method and Description |
---|---|
IPeripheral |
getPeripheral(World world,
BlockPos pos,
EnumFacing side)
Produce an peripheral implementation from a block location.
|
IPeripheral getPeripheral(World world, BlockPos pos, EnumFacing side)
world
- The world the block is in.pos
- The position the block is at.side
- The side to get the peripheral from.null
if there is not a peripheral here you'd like to handle.ComputerCraftAPI.registerPeripheralProvider(IPeripheralProvider)