public interface IWiredElement extends IWiredSender
ComputerCraftAPI.createWiredNodeForElement(IWiredElement). This acts
as a proxy for all network objects. Whilst the node may change networks, an element's node should remain constant
for its lifespan.
Elements are generally tied to a block or tile entity in world. One should either register an IWiredProvider
or implement IWiredElementTile on your tile entity.| Modifier and Type | Method and Description |
|---|---|
default java.util.Map<java.lang.String,IPeripheral> |
getPeripherals()
Fetch the peripherals this network element provides.
|
default void |
networkChanged(IWiredNetworkChange change)
Called when objects on the network change.
|
getNodegetPosition, getSenderID, getWorld@Nonnull default java.util.Map<java.lang.String,IPeripheral> getPeripherals()
IWiredNode.invalidate()}, so
one does not need to cache the return value.IWiredNode.invalidate()default void networkChanged(@Nonnull
IWiredNetworkChange change)
change - The change which occurred.IWiredNetworkChange