package com.aranroig.editor; import net.minecraft.network.RegistryFriendlyByteBuf; import net.minecraft.network.codec.ByteBufCodecs; import net.minecraft.network.codec.StreamCodec; public class RunInfo { public static final StreamCodec CODEC = StreamCodec.composite( ByteBufCodecs.STRING_UTF8, RunInfo::getEntrypoint, RunInfo::new ); // Class with file info private String entrypoint; public RunInfo(String entrypoint) { this.entrypoint = entrypoint; } public String getEntrypoint() { return entrypoint; } public void setEntrypoint(String entrypoint) { this.entrypoint = entrypoint; } }