#683: Add Player#showDemoScreen

This commit is contained in:
coll1234567 2021-11-26 10:13:40 +11:00 committed by md_5
parent d25437bce3
commit 57e7e95215
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -1308,6 +1308,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
*/
public void openBook(@NotNull ItemStack book);
/**
* Shows the demo screen to the player, this screen is normally only seen in
* the demo version of the game.
* <br>
* Servers can modify the text on this screen using a resource pack.
*/
public void showDemoScreen();
/**
* Gets whether the player has the "Allow Server Listings" setting enabled.
*