Class ElectricAcceptorNode
-
public final class ElectricAcceptorNode extends ElectricNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceElectricAcceptorNode.AcceptorHandler
-
Field Summary
Fields Modifier and Type Field Description private final ElectricNodeTypetypeprivate final UUIDidprivate final Stringnameprivate final BlockPositionblockprivate final Set<UUID>connectionsprivate final ElectricNetworknetwork
-
Constructor Summary
Constructors Constructor Description ElectricAcceptorNode(String name, BlockPosition block)
-
Method Summary
Modifier and Type Method Description ElectricNodeTypegetType()final voidonAccept(ElectricAcceptorNode.AcceptorHandler handler)Registers a handler, which is called with surplus power provided by the network. -
Methods inherited from class io.github.pylonmc.rebar.electricity.nodes.ElectricNode
connect, disconnectAll, disconnectFrom, equals, getBlock, getConnections, getId, getName, getNetwork, hashCode, isConnectedTo, onConnect, onDisconnect, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ElectricAcceptorNode
ElectricAcceptorNode(String name, BlockPosition block)
-
-
Method Detail
-
getType
ElectricNodeType getType()
-
onAccept
final void onAccept(ElectricAcceptorNode.AcceptorHandler handler)
Registers a handler, which is called with surplus power provided by the network. Previous handlers are overwritten.
-
-
-
-