Initialize no args TextComponent with blank text.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user