Add Player#openSign API to edit a placed sign

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2021-12-05 08:34:33 +11:00
parent 440c99dc37
commit 36fb1f9c00

View File

@ -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.