@FunctionalInterface
public interface IWiredProvider
IWiredElement for a block at a given position.| Modifier and Type | Method and Description |
|---|---|
IWiredElement |
getElement(net.minecraft.world.IBlockAccess world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing side)
Extract a wired network element from a block location.
|
@Nullable IWiredElement getElement(@Nonnull net.minecraft.world.IBlockAccess 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 network element from.null if there is not an element here you'd like to handle.