mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Add Player#openSign API to edit a placed sign
By: md_5 <git@md-5.net>
This commit is contained in:
parent
440c99dc37
commit
36fb1f9c00
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user