Skip to content

Commit 6fabbfb

Browse files
committed
Update ByteBufWrapper.java
1 parent bfec4e1 commit 6fabbfb

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/main/java/com/cheatbreaker/nethandler/ByteBufWrapper.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
import com.google.common.base.Charsets;
44
import io.netty.buffer.ByteBuf;
5+
import lombok.Getter;
6+
import lombok.RequiredArgsConstructor;
7+
import lombok.experimental.Accessors;
58

69
import java.util.UUID;
710
import java.util.function.Consumer;
811
import java.util.function.Supplier;
912

13+
@RequiredArgsConstructor @Getter @Accessors(fluent = true)
1014
public 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
}

0 commit comments

Comments
 (0)