This commit is contained in:
2026-10-06 17:59:26 +02:00
parent f2d09b8a9c
commit 7a115445ab
12 changed files with 1288 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
package com.aranroig.payloads;
import com.aranroig.Codecraft;
import net.minecraft.network.RegistryFriendlyByteBuf;
import net.minecraft.network.codec.StreamCodec;
import net.minecraft.network.protocol.common.custom.CustomPacketPayload;
import net.minecraft.resources.Identifier;
public record ServerboundRequestProjectPayload() implements CustomPacketPayload {
public static final Identifier REQUEST_PROJECT_PAYLOAD_ID = Identifier.fromNamespaceAndPath(Codecraft.MOD_ID, "request_project");
public static final CustomPacketPayload.Type<ServerboundRequestProjectPayload> TYPE = new CustomPacketPayload.Type<>(REQUEST_PROJECT_PAYLOAD_ID);
public static final StreamCodec<RegistryFriendlyByteBuf, ServerboundRequestProjectPayload> CODEC =
StreamCodec.unit(new ServerboundRequestProjectPayload());
@Override
public Type<? extends CustomPacketPayload> type() {
return TYPE;
}
}