Win Screen API (#8802)
This commit is contained in:
parent
2eca2a27b0
commit
b082d8970b
2 changed files with 55 additions and 0 deletions
29
patches/api/0427-Win-Screen-API.patch
Normal file
29
patches/api/0427-Win-Screen-API.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Lama06 <andreasprues36@gmail.com>
|
||||
Date: Sat, 21 Jan 2023 13:45:22 +0100
|
||||
Subject: [PATCH] Win Screen API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
||||
index de960716478477ce199526b8f860cfafa1541ee9..204bdc65e8d8bbfe462a0b5180c55beae8cb181d 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Player.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Player.java
|
||||
@@ -822,6 +822,18 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||
*/
|
||||
public void sendMap(@NotNull MapView map);
|
||||
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * Shows the player the win screen that normally is only displayed after one kills the ender dragon
|
||||
+ * and exits the end for the first time.
|
||||
+ * In vanilla, the win screen starts with a poem and then continues with the credits but its content can be
|
||||
+ * changed by using a resource pack.
|
||||
+ *
|
||||
+ * @see <a href="https://minecraft.fandom.com/wiki/End_Poem#Technical_details">https://minecraft.fandom.com/wiki/End_Poem#Technical_details</a>
|
||||
+ */
|
||||
+ public void showWinScreen();
|
||||
+ // Paper end
|
||||
+
|
||||
// Paper start
|
||||
/**
|
||||
* Permanently Bans the Profile and IP address currently used by the player.
|
Loading…
Add table
Add a link
Reference in a new issue