Interface WiredElement
- All Superinterfaces:
PacketSender
,WiredSender
An object which may be part of a wired network.
Elements should construct a node using ComputerCraftAPI.createWiredNodeForElement(WiredElement)
. 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 block entity in world. In such as case, one should provide the
WiredElement
capability for the appropriate sides.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
networkChanged
(WiredNetworkChange change) Called when peripherals on the network change.Methods inherited from interface dan200.computercraft.api.network.PacketSender
getLevel, getPosition, getSenderID
Methods inherited from interface dan200.computercraft.api.network.wired.WiredSender
getNode
-
Method Details
-
networkChanged
Called when peripherals on the network change. This may occur when network nodes are added or removed, or when peripherals are attached or detached from a modem.- Parameters:
change
- The change which occurred.- See Also:
-