public interface IGridHelper
IGridNode, IGridConnection or potentially similar tasks.| Modifier and Type | Method and Description |
|---|---|
IGridConnection |
createGridConnection(IGridNode a,
IGridNode b)
Create a direct connection between two
IGridNode. |
IGridNode |
createGridNode(IGridBlock block)
Create a grid node for your
IGridHost
The passed IGridBlock represents the definition for properties like connectable sides. |
@Nonnull IGridNode createGridNode(@Nonnull IGridBlock block)
IGridHost
The passed IGridBlock represents the definition for properties like connectable sides.
Refer to its documentation for further details.block - grid block@Nonnull IGridConnection createGridConnection(@Nonnull IGridNode a, @Nonnull IGridNode b) throws FailedConnectionException
IGridNode.
This will be considered as having a distance of 1, regardless of the location of both nodes.a - to be connected gridnodeb - to be connected gridnodeFailedConnectionException