Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
36 Zeilen
1.3 KiB
Diff
36 Zeilen
1.3 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: SoSeDiK <mrsosedik@gmail.com>
|
||
|
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 1d98abff1ad0116f7a2599f078aa730cb84843c1..ecb8b4cf48c7d6151ffec92bc6855d1fc57a2b51 100644
|
||
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
||
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
||
|
@@ -2828,6 +2828,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();
|