Adventure
Co-authored-by: zml <zml@stellardrift.ca> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Yannick Lamprecht <yannicklamprecht@live.de>
This commit is contained in:
@@ -13,17 +13,37 @@ public interface TextDisplay extends Display {
|
||||
* Gets the displayed text.
|
||||
*
|
||||
* @return the displayed text.
|
||||
* @deprecated in favour of {@link #text()}
|
||||
*/
|
||||
@Nullable
|
||||
@Deprecated // Paper
|
||||
String getText();
|
||||
|
||||
/**
|
||||
* Sets the displayed text.
|
||||
*
|
||||
* @param text the new text
|
||||
* @deprecated in favour of {@link #text(net.kyori.adventure.text.Component)}
|
||||
*/
|
||||
@Deprecated // Paper
|
||||
void setText(@Nullable String text);
|
||||
|
||||
// Paper start
|
||||
/**
|
||||
* Gets the displayed text.
|
||||
*
|
||||
* @return the displayed text
|
||||
*/
|
||||
net.kyori.adventure.text.@NotNull Component text();
|
||||
|
||||
/**
|
||||
* Sets the displayed text.
|
||||
*
|
||||
* @param text the new text
|
||||
*/
|
||||
void text(net.kyori.adventure.text.@Nullable Component text);
|
||||
// Paper end
|
||||
|
||||
/**
|
||||
* Gets the maximum line width before wrapping.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user