blob: 205382508096168e8e2b5743631e36fdb4f40345 [file] [log] [blame] [raw]
package li.cil.oc.api.detail;
import li.cil.oc.api.network.Component;
import li.cil.oc.api.network.ComponentConnector;
import li.cil.oc.api.network.Connector;
import li.cil.oc.api.network.Node;
public interface Builder<T extends Node> {
T create();
public static interface NodeBuilder extends Builder<Node> {
ComponentBuilder withComponent();
ConnectorBuilder withConnector(double bufferSize);
}
static interface ComponentBuilder extends Builder<Component> {
ComponentConnectorBuilder withConnector(double bufferSize);
}
static interface ConnectorBuilder extends Builder<Connector> {
ComponentConnectorBuilder withComponent();
}
static interface ComponentConnectorBuilder extends Builder<ComponentConnector> {
}
}