Added Step to handler that allows users to stop the message from beeing sent and prepare some data.

This commit is contained in:
Frank 2021-08-17 09:52:48 +02:00
parent 132623419d
commit 742ea56e34
5 changed files with 58 additions and 25 deletions

View file

@ -29,7 +29,7 @@ public class RequestFiles extends DataHandler {
}
@Override
protected void serializeData(FriendlyByteBuf buf) {
protected void serializeData(FriendlyByteBuf buf, boolean isClient) {
newToken();
writeString(buf, currentToken);