aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0382-Elder-Guardian-appearance-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0382-Elder-Guardian-appearance-API.patch')
-rw-r--r--patches/api/0382-Elder-Guardian-appearance-API.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/patches/api/0382-Elder-Guardian-appearance-API.patch b/patches/api/0382-Elder-Guardian-appearance-API.patch
new file mode 100644
index 0000000000..7bd14b5041
--- /dev/null
+++ b/patches/api/0382-Elder-Guardian-appearance-API.patch
@@ -0,0 +1,35 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: SoSeDiK <[email protected]>
+Date: Tue, 11 Oct 2022 20:38:47 +0300
+Subject: [PATCH] Elder Guardian appearance API
+
+
+diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
+index e5877f30aa21e1a3d7b9889160b64312e0f87b5c..7b8b0db8fbff229a880ba32ff75aa87c598b3614 100644
+--- a/src/main/java/org/bukkit/entity/Player.java
++++ b/src/main/java/org/bukkit/entity/Player.java
+@@ -2954,6 +2954,24 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
+ void lookAt(@NotNull org.bukkit.entity.Entity entity, @NotNull io.papermc.paper.entity.LookAnchor playerAnchor, @NotNull io.papermc.paper.entity.LookAnchor entityAnchor);
+ // Paper end - Teleport API
+
++ // Paper start
++ /**
++ * Displays elder guardian effect with a sound
++ *
++ * @see #showElderGuardian(boolean)
++ */
++ default void showElderGuardian() {
++ showElderGuardian(false);
++ }
++
++ /**
++ * Displays elder guardian effect and optionally plays a sound
++ *
++ * @param silent whether sound should be silenced
++ */
++ void showElderGuardian(boolean silent);
++ // Paper end
++
+ @NotNull
+ @Override
+ Spigot spigot();