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 2
2
3
3
import com .google .common .base .Charsets ;
4
4
import io .netty .buffer .ByteBuf ;
5
+ import lombok .Getter ;
6
+ import lombok .RequiredArgsConstructor ;
7
+ import lombok .experimental .Accessors ;
5
8
6
9
import java .util .UUID ;
7
10
import java .util .function .Consumer ;
8
11
import java .util .function .Supplier ;
9
12
13
+ @ RequiredArgsConstructor @ Getter @ Accessors (fluent = true )
10
14
public class ByteBufWrapper {
11
15
12
16
private final ByteBuf buf ;
13
17
14
- public ByteBufWrapper (ByteBuf buf ) {
15
- this .buf = buf ;
16
- }
17
-
18
18
public void writeVarInt (int b ) {
19
19
while ((b & 0xFFFFFF80 ) != 0x0 ) {
20
20
this .buf .writeByte ((b & 0x7F ) | 0x80 );
@@ -72,8 +72,4 @@ public UUID readUUID() {
72
72
long leastSigBits = this .buf .readLong ();
73
73
return new UUID (mostSigBits , leastSigBits );
74
74
}
75
-
76
- public ByteBuf buf () {
77
- return this .buf ;
78
- }
79
75
}
You can’t perform that action at this time.
0 commit comments