2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Mark Vainomaa <mikroskeem@mikroskeem.eu>
|
|
|
|
Date: Sun, 1 Apr 2018 02:28:43 +0300
|
2021-12-05 08:11:59 +01:00
|
|
|
Subject: [PATCH] Add openSign method to HumanEntity
|
2021-06-11 14:02:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/HumanEntity.java b/src/main/java/org/bukkit/entity/HumanEntity.java
|
2022-09-12 13:31:45 +02:00
|
|
|
index be3eaadbc768a306da68a15abcaa7a5d3ec760c7..13b74e942012169611f2791f8b4493d04710e4c0 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/entity/HumanEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/HumanEntity.java
|
2022-09-12 13:31:45 +02:00
|
|
|
@@ -480,6 +480,14 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
2021-06-11 14:02:28 +02:00
|
|
|
*/
|
|
|
|
@Deprecated
|
|
|
|
public void setShoulderEntityRight(@Nullable Entity entity);
|
|
|
|
+ // Paper start - Add method to open already placed sign
|
|
|
|
+ /**
|
|
|
|
+ * Opens an editor window for the specified sign
|
|
|
|
+ *
|
|
|
|
+ * @param sign The sign to open
|
|
|
|
+ */
|
|
|
|
+ void openSign(@NotNull org.bukkit.block.Sign sign);
|
|
|
|
+ // Paper end
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Make the entity drop the item in their hand.
|
2021-12-05 08:11:59 +01:00
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
2022-07-27 20:52:03 +02:00
|
|
|
index 1d3387716f3e4e11155d79f62a759d8c59db84cd..4cc2be70758e2b5b9ea195a4a7f6cd5a7b735149 100644
|
2021-12-05 08:11:59 +01:00
|
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
2022-07-27 20:52:03 +02:00
|
|
|
@@ -2153,7 +2153,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
2021-12-05 08:11:59 +01:00
|
|
|
/**
|
|
|
|
* Open a Sign for editing by the Player.
|
|
|
|
*
|
|
|
|
- * The Sign must be placed in the same world as the player.
|
|
|
|
+ * The Sign must be in the same world as the player.
|
|
|
|
*
|
|
|
|
* @param sign The sign to edit
|
|
|
|
*/
|