File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/main/java/com/cheatbreaker/nethandler Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 22
33import com .google .common .base .Charsets ;
44import io .netty .buffer .ByteBuf ;
5+ import lombok .Getter ;
6+ import lombok .RequiredArgsConstructor ;
7+ import lombok .experimental .Accessors ;
58
69import java .util .UUID ;
710import java .util .function .Consumer ;
811import java .util .function .Supplier ;
912
13+ @ RequiredArgsConstructor @ Getter @ Accessors (fluent = true )
1014public class ByteBufWrapper {
1115
1216 private final ByteBuf buf ;
1317
14- public ByteBufWrapper (ByteBuf buf ) {
15- this .buf = buf ;
16- }
17-
1818 public void writeVarInt (int b ) {
1919 while ((b & 0xFFFFFF80 ) != 0x0 ) {
2020 this .buf .writeByte ((b & 0x7F ) | 0x80 );
@@ -72,8 +72,4 @@ public UUID readUUID() {
7272 long leastSigBits = this .buf .readLong ();
7373 return new UUID (mostSigBits , leastSigBits );
7474 }
75-
76- public ByteBuf buf () {
77- return this .buf ;
78- }
7975}
You can’t perform that action at this time.
0 commit comments