mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
Add basic sendTitle / resetTitle API.
More APIs to follow pending feedback of whether this is the preferred implementation. Methods marked as deprecated and subject to change, but work as is. By: Jofkos <JofkosDE@gmail.com>
This commit is contained in:
parent
762b8e2ff2
commit
5da3d70916
1 changed files with 21 additions and 0 deletions
|
@ -1055,4 +1055,25 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline
|
|||
* {@link GameMode#SPECTATOR}
|
||||
*/
|
||||
public void setSpectatorTarget(Entity entity);
|
||||
|
||||
/**
|
||||
* Sends a title and a subtitle message to the player. If either of these
|
||||
* values are null, they will not be sent and the display will remain
|
||||
* unchanged. If they are empty strings, the display will be updated as
|
||||
* such. If the strings contain a new line, only the first line will be
|
||||
* sent.
|
||||
*
|
||||
* @param title Title text
|
||||
* @param subtitle Subtitle text
|
||||
* @deprecated API subject to change
|
||||
*/
|
||||
@Deprecated
|
||||
public void sendTitle(String title, String subtitle);
|
||||
|
||||
/**
|
||||
* Resets the title displayed to the player.
|
||||
* @deprecated API subject to change.
|
||||
*/
|
||||
@Deprecated
|
||||
public void resetTitle();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue