Interface PeripheralProvider<B extends net.minecraft.world.level.block.entity.BlockEntity>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PeripheralProvider<B extends net.minecraft.world.level.block.entity.BlockEntity>
Supplies a peripheral for a block entity on a given side, or null if none is exposed.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable dan200.computercraft.api.peripheral.IPeripheral
    getPeripheral(B blockEntity, @Nullable net.minecraft.core.Direction side)
     
  • Method Details

    • getPeripheral

      @Nullable @Nullable dan200.computercraft.api.peripheral.IPeripheral getPeripheral(B blockEntity, @Nullable @Nullable net.minecraft.core.Direction side)