31 lines
772 B
Java
31 lines
772 B
Java
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<RegistryFriendlyByteBuf, RunInfo> 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;
|
|
}
|
|
}
|