![JAR search and dependency download from the Maven repository](/logo.png)
cn.nukkit.lang.TextContainer 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.lang;
import lombok.extern.log4j.Log4j2;
/**
* @author MagicDroidX (Nukkit Project)
*/
@Log4j2
public class TextContainer implements Cloneable {
protected String text;
public TextContainer(String text) {
this.text = text;
}
public void setText(String text) {
this.text = text;
}
public String getText() {
return text;
}
@Override
public String toString() {
return this.getText();
}
@Override
public TextContainer clone() {
try {
return (TextContainer) super.clone();
} catch (CloneNotSupportedException e) {
log.error("Failed to clone the text container {}", this.toString(), e);
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy