mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-28 07:24:57 +02:00
18 lines
350 B
Java
18 lines
350 B
Java
|
package net.minestom.server.utils.binary;
|
||
|
|
||
|
import org.jetbrains.annotations.NotNull;
|
||
|
|
||
|
/**
|
||
|
* Represents an element which can read from a {@link BinaryReader}.
|
||
|
*/
|
||
|
public interface Readable {
|
||
|
|
||
|
/**
|
||
|
* Reads from a {@link BinaryReader}.
|
||
|
*
|
||
|
* @param reader the reader to read from
|
||
|
*/
|
||
|
void read(@NotNull BinaryReader reader);
|
||
|
|
||
|
}
|