Initialize no args TextComponent with blank text.
This commit is contained in:
parent
c43f25e23b
commit
a05e695db9
@ -14,7 +14,6 @@ import java.util.regex.Pattern;
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class TextComponent extends BaseComponent
|
||||
{
|
||||
|
||||
@ -135,6 +134,14 @@ public class TextComponent extends BaseComponent
|
||||
*/
|
||||
private String text;
|
||||
|
||||
/**
|
||||
* Creates a TextComponent with blank text.
|
||||
*/
|
||||
public TextComponent()
|
||||
{
|
||||
this.text = "";
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a TextComponent with formatting and text from the passed
|
||||
* component
|
||||
|
Loading…
Reference in New Issue
Block a user