Package alexiil.mc.lib.net
Interface IMsgCtx
- All Known Subinterfaces:
IMsgReadCtx
,IMsgWriteCtx
- All Known Implementing Classes:
MessageContext
,MessageContext.Read
,MessageContext.Write
public interface IMsgCtx
-
Method Summary
-
Method Details
-
getConnection
ActiveConnection getConnection() -
getNetSide
- Returns:
- The
NetworkSide
for thisgetConnection()
, assuming that it is anActiveMinecraftConnection
.
-
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()
-