Class NetworkElementProviderSingleton
java.lang.Object
org.cyclops.integrateddynamics.capability.networkelementprovider.NetworkElementProviderSingleton
- All Implemented Interfaces:
INetworkElementProvider
public abstract class NetworkElementProviderSingleton
extends Object
implements INetworkElementProvider
A network element provider for a single element.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract INetworkElement
createNetworkElement
(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos) createNetworkElements
(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos) Create network element instances for the given position.
-
Constructor Details
-
NetworkElementProviderSingleton
public NetworkElementProviderSingleton()
-
-
Method Details
-
createNetworkElements
public Collection<INetworkElement> createNetworkElements(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos) Description copied from interface:INetworkElementProvider
Create network element instances for the given position.- Specified by:
createNetworkElements
in interfaceINetworkElementProvider
- Parameters:
world
- The world.blockPos
- The position.- Returns:
- A collection of all network elements at this position.
-
createNetworkElement
public abstract INetworkElement createNetworkElement(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos blockPos)
-