aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/net/GT_Packet.java
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
committerJason Mitchell <mitchej@gmail.com>2023-01-30 10:56:42 -0800
commit0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a (patch)
tree1e2c649f3a6ce3f6b2babd0098a5f4819e9cd0b6 /src/main/java/gregtech/api/net/GT_Packet.java
parentf8cc82edeb9810c45cba762d733a2c909a302faa (diff)
downloadGT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.gz
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.tar.bz2
GT5-Unofficial-0d9aab72aa570f13dc3e32e0d32b3f3a95f95e0a.zip
[ci skip] spotlessApply with the new settings
Diffstat (limited to 'src/main/java/gregtech/api/net/GT_Packet.java')
-rw-r--r--src/main/java/gregtech/api/net/GT_Packet.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/main/java/gregtech/api/net/GT_Packet.java b/src/main/java/gregtech/api/net/GT_Packet.java
index 48cc171d61..fe2ac22ed3 100644
--- a/src/main/java/gregtech/api/net/GT_Packet.java
+++ b/src/main/java/gregtech/api/net/GT_Packet.java
@@ -1,15 +1,17 @@
package gregtech.api.net;
-import com.google.common.io.ByteArrayDataInput;
-import io.netty.buffer.ByteBuf;
import net.minecraft.network.INetHandler;
import net.minecraft.world.IBlockAccess;
+import com.google.common.io.ByteArrayDataInput;
+import io.netty.buffer.ByteBuf;
+
/**
* @deprecated Use {@link GT_Packet_New} instead
*/
@Deprecated
public abstract class GT_Packet {
+
public GT_Packet(boolean aIsReference) {
//
}
@@ -29,8 +31,8 @@ public abstract class GT_Packet {
public abstract byte[] encode();
/**
- * Encode the data into given byte buffer without creating an intermediate byte array.
- * Default implementation just throw {@link UnsupportedOperationException}.
+ * Encode the data into given byte buffer without creating an intermediate byte array. Default implementation just
+ * throw {@link UnsupportedOperationException}.
*/
public void encode(ByteBuf aOut) {
throw new UnsupportedOperationException();
@@ -49,7 +51,8 @@ public abstract class GT_Packet {
public abstract void process(IBlockAccess aWorld);
/**
- * This will be called just before {@link #process(IBlockAccess)} to inform the handler about the source and type of connection
+ * This will be called just before {@link #process(IBlockAccess)} to inform the handler about the source and type of
+ * connection
*/
public void setINetHandler(INetHandler aHandler) {}
}