More CommandBlock API (#5746)
This commit is contained in:
@@ -1103,6 +1103,49 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
/**
|
||||
* Returns a list of entities within a bounding box centered around a
|
||||
* Location.
|
||||
diff --git a/src/main/java/org/bukkit/block/CommandBlock.java b/src/main/java/org/bukkit/block/CommandBlock.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/block/CommandBlock.java
|
||||
+++ b/src/main/java/org/bukkit/block/CommandBlock.java
|
||||
@@ -0,0 +0,0 @@ public interface CommandBlock extends TileState {
|
||||
* by default is "@".
|
||||
*
|
||||
* @return Name of this CommandBlock.
|
||||
+ * @deprecated in favour of {@link #name()}
|
||||
*/
|
||||
+ @Deprecated // Paper
|
||||
@NotNull
|
||||
public String getName();
|
||||
|
||||
@@ -0,0 +0,0 @@ public interface CommandBlock extends TileState {
|
||||
* same as setting it to "@".
|
||||
*
|
||||
* @param name New name for this CommandBlock.
|
||||
+ * @deprecated in favour of {@link #name(net.kyori.adventure.text.Component)}
|
||||
*/
|
||||
+ @Deprecated // Paper
|
||||
public void setName(@Nullable String name);
|
||||
+
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * Gets the name of this CommandBlock. The name is used with commands
|
||||
+ * that this CommandBlock executes. This name will never be null, and
|
||||
+ * by default is a {@link net.kyori.adventure.text.TextComponent} containing {@code @}.
|
||||
+ *
|
||||
+ * @return Name of this CommandBlock.
|
||||
+ */
|
||||
+ public @NotNull net.kyori.adventure.text.Component name();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets the name of this CommandBlock. The name is used with commands
|
||||
+ * that this CommandBlock executes. Setting the name to null is the
|
||||
+ * same as setting it to a {@link net.kyori.adventure.text.TextComponent} containing {@code @}.
|
||||
+ *
|
||||
+ * @param name New name for this CommandBlock.
|
||||
+ */
|
||||
+ public void name(@Nullable net.kyori.adventure.text.Component name);
|
||||
+ // Paper end
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/block/Sign.java b/src/main/java/org/bukkit/block/Sign.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/block/Sign.java
|
||||
|
||||
Reference in New Issue
Block a user