From 8c2369f6184258aacbb42ac12fdf1bf6932d2a29 Mon Sep 17 00:00:00 2001 From: Sakura Ryoko Date: Tue, 11 Jun 2024 01:30:34 -0400 Subject: [PATCH] Payload Splitter Interface / IClientPayloadData --- .../java/fi/dy/masa/malilib/network/IClientPayloadData.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/fi/dy/masa/malilib/network/IClientPayloadData.java b/src/main/java/fi/dy/masa/malilib/network/IClientPayloadData.java index 46a015e128..db90bbe98a 100644 --- a/src/main/java/fi/dy/masa/malilib/network/IClientPayloadData.java +++ b/src/main/java/fi/dy/masa/malilib/network/IClientPayloadData.java @@ -34,12 +34,15 @@ public interface IClientPayloadData /** * PacketByteBuf Decoder -- How this Data is converted FROM a PacketByteBuf + * [NOTE]: In order for this to work, it needs to call a static version of this. + * This version is only for guidance. + * - * @param input (Incoming Packet) * @return (A new instance of the implementation class) * @param (The implementation class) */ @Nullable - T fromPacket(PacketByteBuf input); + static T fromPacket(PacketByteBuf input) { return null; } /** * PacketByteBuf Encoder -- How this Data is converted TO a PacketByteBuf