Package appeng.api.storage
Interface ILinkStatus
- All Known Implementing Classes:
LinkStatus
public interface ILinkStatus
Describes the current connection status of a
ITerminalHost
to the grid.-
Method Summary
Modifier and TypeMethodDescriptionboolean
static ILinkStatus
static ILinkStatus
static ILinkStatus
ofDisconnected
(@Nullable net.minecraft.network.chat.Component statusDescription) static ILinkStatus
Calculates a link status from a given managed grid node.@Nullable net.minecraft.network.chat.Component
Gives a reason for why the host is disconnected.
-
Method Details
-
ofConnected
- Returns:
- A constant link status indicating the host is connected.
-
ofDisconnected
- Returns:
- A link status indicating the host is disconnected from the grid without a particular reason.
-
ofDisconnected
static ILinkStatus ofDisconnected(@Nullable @Nullable net.minecraft.network.chat.Component statusDescription) - Returns:
- A link status indicating the host is disconnected from the grid with the given reason.
-
ofManagedNode
Calculates a link status from a given managed grid node. -
connected
boolean connected()- Returns:
- True if the host is currently connected to a grid.
-
statusDescription
@Nullable @Nullable net.minecraft.network.chat.Component statusDescription()Gives a reason for why the host is disconnected. Can always be null, but is genereally only not-null ifconnected()
returns false.
-