2022-10-13 12:26:51 +02:00
|
|
|
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
|
2024-01-14 13:33:47 +01:00
|
|
|
index 541ac9cf8f4af2386a5c2930cbd8fa81a48d8445..c79a3583ccbd808df6ca0ef2912bfed4f417c387 100644
|
2022-10-13 12:26:51 +02:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
2023-12-25 11:51:44 +01:00
|
|
|
@@ -3351,6 +3351,24 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2022-10-13 12:26:51 +02:00
|
|
|
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();
|