aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/net/GTPacketNew.java
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2024-09-28 20:36:46 +0900
committerGitHub <noreply@github.com>2024-09-28 11:36:46 +0000
commit64d458cb2bb4b805fc90b256018b49eda3cf2fc1 (patch)
tree20d5f834b14af766550228d1c641e8889cbb9870 /src/main/java/gregtech/api/net/GTPacketNew.java
parent86f1765b171f4cc6f163b8027d1330f4e5094e2d (diff)
downloadGT5-Unofficial-64d458cb2bb4b805fc90b256018b49eda3cf2fc1.tar.gz
GT5-Unofficial-64d458cb2bb4b805fc90b256018b49eda3cf2fc1.tar.bz2
GT5-Unofficial-64d458cb2bb4b805fc90b256018b49eda3cf2fc1.zip
Refactor packets (#3295)
Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/gregtech/api/net/GTPacketNew.java')
-rw-r--r--src/main/java/gregtech/api/net/GTPacketNew.java30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/main/java/gregtech/api/net/GTPacketNew.java b/src/main/java/gregtech/api/net/GTPacketNew.java
deleted file mode 100644
index d3fee800c6..0000000000
--- a/src/main/java/gregtech/api/net/GTPacketNew.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package gregtech.api.net;
-
-import com.google.common.io.ByteArrayDataInput;
-
-import io.netty.buffer.ByteBuf;
-import io.netty.buffer.Unpooled;
-
-@SuppressWarnings("deprecation")
-public abstract class GTPacketNew extends GTPacket {
-
- public GTPacketNew(boolean aIsReference) {
- super(aIsReference);
- }
-
- @Override
- @Deprecated
- public final byte[] encode() {
- final ByteBuf tOut = Unpooled.buffer();
- encode(tOut);
- final byte[] bytes = new byte[tOut.readableBytes()];
- tOut.readBytes(bytes);
- return bytes;
- }
-
- @Override
- public abstract void encode(ByteBuf aOut);
-
- @Override
- public abstract GTPacketNew decode(ByteArrayDataInput aData);
-}