30
src/main/java/com/aranroig/editor/RunInfo.java
Normal file
30
src/main/java/com/aranroig/editor/RunInfo.java
Normal file
@@ -0,0 +1,30 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user