Skip to content

Commit

Permalink
Payload Splitter Interface / IClientPayloadData
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Jun 11, 2024
1 parent 8a3e509 commit 8c2369f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <T> (The implementation class)
*/
@Nullable
<T extends IClientPayloadData> T fromPacket(PacketByteBuf input);
static <T extends IClientPayloadData> T fromPacket(PacketByteBuf input) { return null; }

/**
* PacketByteBuf Encoder -- How this Data is converted TO a PacketByteBuf
Expand Down

0 comments on commit 8c2369f

Please sign in to comment.