Initialize no args TextComponent with blank text.

This commit is contained in:
md_5 2016-07-18 13:32:17 +10:00
parent c43f25e23b
commit a05e695db9

View File

@ -14,7 +14,6 @@ import java.util.regex.Pattern;
@Getter @Getter
@Setter @Setter
@AllArgsConstructor @AllArgsConstructor
@NoArgsConstructor
public class TextComponent extends BaseComponent public class TextComponent extends BaseComponent
{ {
@ -135,6 +134,14 @@ public class TextComponent extends BaseComponent
*/ */
private String text; private String text;
/**
* Creates a TextComponent with blank text.
*/
public TextComponent()
{
this.text = "";
}
/** /**
* Creates a TextComponent with formatting and text from the passed * Creates a TextComponent with formatting and text from the passed
* component * component