ConsumableMessage

An interface which certain packets, such as the info packets, can implement to leave a marker whether the previous packet that was built was sent out to the client. This can be helpful to ensure integrity of the data, as those packets are stateful and guaranteed to crash with very obscure errors if they are not all written.

Functions

Link copied to clipboard
abstract fun consume()

Marks this message as consumed.

Link copied to clipboard
abstract fun isConsumed(): Boolean

Checks whether this message has been consumed.