cn.nukkit.form.element.ElementButtonImageData 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.element;
public class ElementButtonImageData {
public static final String IMAGE_DATA_TYPE_PATH = "path";
public static final String IMAGE_DATA_TYPE_URL = "url";
private String type;
private String data;
public ElementButtonImageData(String type, String data) {
if (!type.equals(IMAGE_DATA_TYPE_URL) && !type.equals(IMAGE_DATA_TYPE_PATH)) return;
this.type = type;
this.data = data;
}
public String getType() {
return type;
}
public String getData() {
return data;
}
public void setType(String type) {
this.type = type;
}
public void setData(String data) {
this.data = data;
}
}