Interface INetworkElementProvider

All Known Implementing Classes:
NetworkElementProviderEmpty, NetworkElementProviderPartContainer, NetworkElementProviderSingleton

public interface INetworkElementProvider
Capability that can create instances of an INetworkElement. Blocks that provide this capability MUST properly call NetworkHelpers.onElementProviderBlockNeighborChange(Level, BlockPos, Block, Direction, BlockPos).
  • Method Summary

    Modifier and Type
    Method
    Description
    createNetworkElements(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos)
    Create network element instances for the given position.
  • Method Details

    • createNetworkElements

      Collection<INetworkElement> createNetworkElements(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos)
      Create network element instances for the given position.
      Parameters:
      world - The world.
      blockPos - The position.
      Returns:
      A collection of all network elements at this position.