# IChainAPI > Main API interface for interacting with the Chain entity linking system. `gg.lode.chainapi.IChainAPI` --- ## Signature ```java public interface IChainAPI ``` --- ## Methods ### getChainManager ```java IChainManager getChainManager() ``` Returns the chain manager for linking and unlinking entities. **Returns:** `IChainManager` — The chain manager. --- ### setMaxDistance ```java void setMaxDistance(int maxDistance) ``` Sets the maximum distance allowed between chained entities. | Parameter | Type | Description | |---|---|---| | `maxDistance` | `int` | The maximum chain distance. | --- ### getMaxDistance ```java int getMaxDistance() ``` Returns the current maximum chain distance. **Returns:** `int` — The max distance. --- ## Related Pages - [[ChainAPI]] — Static accessor for this interface - [[IChainManager]] — Chain operations manager