Interface ILinkStatus

All Known Implementing Classes:
LinkStatus

public interface ILinkStatus
Describes the current connection status of a ITerminalHost to the grid.
  • Method Details

    • ofConnected

      static ILinkStatus ofConnected()
      Returns:
      A constant link status indicating the host is connected.
    • ofDisconnected

      static ILinkStatus 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

      static ILinkStatus ofManagedNode(IManagedGridNode node)
      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 if connected() returns false.