geforkt von Mirrors/Paper
Add openSign method to HumanEntity
Dieser Commit ist enthalten in:
Ursprung
16b17bdc68
Commit
a97f03a018
@ -538,6 +538,26 @@ public interface HumanEntity extends LivingEntity, AnimalTamer, InventoryHolder
|
||||
*/
|
||||
@Deprecated(since = "1.12")
|
||||
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
|
||||
* @deprecated use {@link #openSign(org.bukkit.block.Sign, org.bukkit.block.sign.Side)}
|
||||
*/
|
||||
@Deprecated
|
||||
default void openSign(@NotNull org.bukkit.block.Sign sign) {
|
||||
this.openSign(sign, org.bukkit.block.sign.Side.FRONT);
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens an editor window for the specified sign
|
||||
*
|
||||
* @param sign The sign to open
|
||||
* @param side The side of the sign to open
|
||||
*/
|
||||
void openSign(org.bukkit.block.@NotNull Sign sign, org.bukkit.block.sign.@NotNull Side side);
|
||||
// Paper end
|
||||
|
||||
/**
|
||||
* Make the entity drop the item in their hand.
|
||||
|
@ -3115,10 +3115,12 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||
/**
|
||||
* 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
|
||||
* @deprecated use {@link #openSign(Sign, Side)}
|
||||
*/
|
||||
@Deprecated
|
||||
public void openSign(@NotNull Sign sign);
|
||||
|
||||
/**
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren