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
|
@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
|
||||||
|
Loading…
Reference in New Issue
Block a user