Interface IMsgCtx

All Known Subinterfaces:
IMsgReadCtx, IMsgWriteCtx
All Known Implementing Classes:
MessageContext, MessageContext.Read, MessageContext.Write

public interface IMsgCtx
  • Method Details

    • getConnection

      ActiveConnection getConnection()
    • getNetSide

      default EnumNetSide getNetSide()
      Returns:
      The NetworkSide for this getConnection(), assuming that it is an ActiveMinecraftConnection.
    • isServerSide

      default boolean isServerSide()
      Returns:
      true if the code calling this is running as the master/server. (In normal connections the dedicated or integrated server is the master, and the client is the slave). Assumes that the connection is an ActiveMinecraftConnection.
    • isClientSide

      default boolean isClientSide()
      Returns:
      true if the code calling this is running as the slave/client. (In normal connections the dedicated or integrated server is the master, and the client is the slave). Assumes that the connection is an ActiveMinecraftConnection.
    • getNetId

      NetIdBase getNetId()