public interface IGridConnection
| Modifier and Type | Method and Description |
|---|---|
IGridNode |
a() |
IGridNode |
b() |
void |
destroy()
by destroying a connection you may create new grids, and trigger un-expected behavior, you should only destroy
connections if you created them.
|
AEPartLocation |
getDirection(IGridNode gridNode)
determine the direction of the connection based on your node.
|
IGridNode |
getOtherSide(IGridNode gridNode)
lets you get the opposing node of the connection by passing your own node.
|
int |
getUsedChannels() |
boolean |
hasDirection() |
@Nonnull IGridNode getOtherSide(IGridNode gridNode)
gridNode - current grid node@Nonnull AEPartLocation getDirection(IGridNode gridNode)
gridNode - current grid nodevoid destroy()
@Nonnull IGridNode a()
@Nonnull IGridNode b()
boolean hasDirection()
int getUsedChannels()