Interface IMsgReadCtx

All Superinterfaces:
IMsgCtx
All Known Implementing Classes:
MessageContext.Read

public interface IMsgReadCtx extends IMsgCtx
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    default void
     
    default void
    Informs the supplier that this packet has been dropped (for any reason) and so there might be unread data left in the buffer.
    void
    drop(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 interface alexiil.mc.lib.net.IMsgCtx

    getConnection, getNetId, getNetSide, isClientSide, isServerSide
  • Method Details

    • assertClientSide

      default void assertClientSide() throws InvalidInputDataException
      Throws:
      InvalidInputDataException
    • assertServerSide

      default void assertServerSide() throws InvalidInputDataException
      Throws:
      InvalidInputDataException
    • drop

      default void drop()
      Informs the supplier that this packet has been dropped (for any reason) and so there might be unread data left in the buffer.
    • drop

      void drop(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.