From 36fb1f9c0093562fc744bd18df605f56c0545136 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 5 Dec 2021 08:34:33 +1100 Subject: [PATCH] Add Player#openSign API to edit a placed sign By: md_5 --- paper-api/src/main/java/org/bukkit/entity/Player.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index 0213fe4877..a9b650834b 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -16,6 +16,7 @@ import org.bukkit.WeatherType; import org.bukkit.advancement.Advancement; import org.bukkit.advancement.AdvancementProgress; import org.bukkit.block.Block; +import org.bukkit.block.Sign; import org.bukkit.block.data.BlockData; import org.bukkit.conversations.Conversable; import org.bukkit.event.block.BlockBreakEvent; @@ -1341,6 +1342,15 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM */ public void openBook(@NotNull ItemStack book); + /** + * Open a Sign for editing by the Player. + * + * The Sign must be placed in the same world as the player. + * + * @param sign The sign to edit + */ + public void openSign(@NotNull Sign sign); + /** * Shows the demo screen to the player, this screen is normally only seen in * the demo version of the game.