cn.nukkit.form.window.FormWindow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.form.window;
import cn.nukkit.form.response.FormResponse;
import com.google.gson.Gson;
public abstract class FormWindow {
private static final Gson GSON = new Gson();
protected boolean closed = false;
public String getJSONData() {
return FormWindow.GSON.toJson(this);
}
public abstract void setResponse(String data);
public abstract FormResponse getResponse();
public boolean wasClosed() {
return closed;
}
}