Package alexiil.mc.lib.net
Class MessageContext.Read
java.lang.Object
alexiil.mc.lib.net.MessageContext
alexiil.mc.lib.net.MessageContext.Read
- All Implemented Interfaces:
IMsgCtx,IMsgReadCtx
- Enclosing class:
- MessageContext
public static class MessageContext.Read extends MessageContext implements IMsgReadCtx
-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.net.MessageContext
MessageContext.Read, MessageContext.Write -
Field Summary
Fields Modifier and Type Field Description java.lang.StringdropReasonA non-null value indicates that the read message was dropped. -
Constructor Summary
Constructors Constructor Description Read(ActiveConnection connection, NetIdBase id) -
Method Summary
Modifier and Type Method Description voiddrop(java.lang.String reason)Informs the supplier that this packet has been dropped (for the given reason) and so there might be unread data left in the buffer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface alexiil.mc.lib.net.IMsgCtx
getConnection, getNetId, getNetSide, isClientSide, isServerSideMethods inherited from interface alexiil.mc.lib.net.IMsgReadCtx
assertClientSide, assertServerSide, drop
-
Field Details
-
dropReason
public java.lang.String dropReasonA non-null value indicates that the read message was dropped.
-
-
Constructor Details
-
Method Details
-
drop
public void drop(java.lang.String reason)Description copied from interface:IMsgReadCtxInforms the supplier that this packet has been dropped (for the given reason) and so there might be unread data left in the buffer.- Specified by:
dropin interfaceIMsgReadCtx
-