Add InPacket interface and ByteBuf implementation

Replacement for LittleEndianAccessor, SeekableLittleEndianAccessor,
GenericLittleEndianAccessor, and GenericSeekableLittleEndianAccessor.
This commit is contained in:
P0nk
2021-06-20 17:15:10 +02:00
parent eb7ee9dabe
commit 00abbb4acd
6 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package net.packet;
import io.netty.buffer.ByteBuf;
public class ByteBufOutPacket implements OutPacket {
private final ByteBuf byteBuf;
public ByteBufOutPacket(ByteBuf byteBuf) {
this.byteBuf = byteBuf;
}
}