Add deprecations to SignSide string methods (#9467)
This commit is contained in:
@@ -1687,6 +1687,36 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all the lines of text currently on this side of the sign.
|
* Gets all the lines of text currently on this side of the sign.
|
||||||
|
*
|
||||||
|
* @return Array of Strings containing each line of text
|
||||||
|
+ * @deprecated in favour of {@link #lines()}
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
+ @Deprecated // Paper
|
||||||
|
public String[] getLines();
|
||||||
|
|
||||||
|
/**
|
||||||
|
@@ -0,0 +0,0 @@ public interface SignSide extends Colorable {
|
||||||
|
* @param index Line number to get the text from, starting at 0
|
||||||
|
* @return Text on the given line
|
||||||
|
* @throws IndexOutOfBoundsException Thrown when the line does not exist
|
||||||
|
+ * @deprecated in favour of {@link #line(int)}
|
||||||
|
*/
|
||||||
|
@NotNull
|
||||||
|
+ @Deprecated // Paper
|
||||||
|
public String getLine(int index) throws IndexOutOfBoundsException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
@@ -0,0 +0,0 @@ public interface SignSide extends Colorable {
|
||||||
|
* @param index Line number to set the text at, starting from 0
|
||||||
|
* @param line New text to set at the specified index
|
||||||
|
* @throws IndexOutOfBoundsException If the index is out of the range 0..3
|
||||||
|
+ * @deprecated in favour of {@link #line(int, net.kyori.adventure.text.Component)}
|
||||||
|
*/
|
||||||
|
+ @Deprecated // Paper
|
||||||
|
public void setLine(int index, @NotNull String line) throws IndexOutOfBoundsException;
|
||||||
|
|
||||||
|
/**
|
||||||
diff --git a/src/main/java/org/bukkit/command/Command.java b/src/main/java/org/bukkit/command/Command.java
|
diff --git a/src/main/java/org/bukkit/command/Command.java b/src/main/java/org/bukkit/command/Command.java
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/command/Command.java
|
--- a/src/main/java/org/bukkit/command/Command.java
|
||||||
|
|||||||
Reference in New Issue
Block a user