cn.nukkit.form.element.ElementButton 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 ElementButton {
private String text = "";
private ElementButtonImageData image;
public ElementButton(String text) {
this.text = text;
}
public ElementButton(String text, ElementButtonImageData image) {
this.text = text;
if (!image.getData().isEmpty() && !image.getType().isEmpty()) this.image = image;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public ElementButtonImageData getImage() {
return image;
}
public void addImage(ElementButtonImageData image) {
if (!image.getData().isEmpty() && !image.getType().isEmpty()) this.image = image;
}
}