@FunctionalInterface
public interface IPeripheralProvider
Modifier and Type | Method and Description |
---|---|
IPeripheral |
getPeripheral(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
Produce an peripheral implementation from a block location.
|
@Nullable IPeripheral getPeripheral(@Nonnull net.minecraft.world.World world, @Nonnull net.minecraft.util.math.BlockPos pos, @Nonnull net.minecraft.util.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)