| Constructor and Description |
|---|
SocketRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLink(Block block1,
Block block2,
BlockConnector socket1,
BlockConnector socket2)
Returns true if the two sockets of the two blocks can link by matching their socket kind; false if not.
|
boolean |
isMandatory() |
public boolean canLink(Block block1, Block block2, BlockConnector socket1, BlockConnector socket2)
public boolean isMandatory()
isMandatory in interface LinkRule