From 54d5defe733b3bfdbdf1086e37eff4b54c632af2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 14 Jun 2023 18:36:11 +1000 Subject: [PATCH] Improve sendSignChange and related documentation By: md_5 --- .../src/main/java/org/bukkit/entity/Player.java | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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 39cca34d0a9..6536a542949 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -638,10 +638,13 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM * a certain location. This will not actually change the world in any way. * This method will use a sign at the location's block or a faked sign * sent via - * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.Material, byte)}. + * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.block.data.BlockData)}. *

* If the client does not have a sign at the given location it will * display an error message to the user. + *

+ * To change all attributes of a sign, including the back Side, use + * {@link #sendBlockUpdate(org.bukkit.Location, org.bukkit.block.TileState)}. * * @param loc the location of the sign * @param lines the new text on the sign or null to clear it @@ -655,10 +658,13 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM * a certain location. This will not actually change the world in any way. * This method will use a sign at the location's block or a faked sign * sent via - * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.Material, byte)}. + * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.block.data.BlockData)}. *

* If the client does not have a sign at the given location it will * display an error message to the user. + *

+ * To change all attributes of a sign, including the back Side, use + * {@link #sendBlockUpdate(org.bukkit.Location, org.bukkit.block.TileState)}. * * @param loc the location of the sign * @param lines the new text on the sign or null to clear it @@ -674,10 +680,13 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM * a certain location. This will not actually change the world in any way. * This method will use a sign at the location's block or a faked sign * sent via - * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.Material, byte)}. + * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.block.data.BlockData)}. *

* If the client does not have a sign at the given location it will * display an error message to the user. + *

+ * To change all attributes of a sign, including the back Side, use + * {@link #sendBlockUpdate(org.bukkit.Location, org.bukkit.block.TileState)}. * * @param loc the location of the sign * @param lines the new text on the sign or null to clear it @@ -694,7 +703,7 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM * the given location. This will not actually change the world in any way. * This method will use a TileState at the location's block or a faked TileState * sent via - * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.Material, byte)}. + * {@link #sendBlockChange(org.bukkit.Location, org.bukkit.block.data.BlockData)}. *

* If the client does not have an appropriate tile at the given location it * may display an error message to the user.