Adventure
Co-authored-by: zml <zml@stellardrift.ca> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Yannick Lamprecht <yannicklamprecht@live.de>
This commit is contained in:
@@ -33,7 +33,9 @@ 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();
|
||||
|
||||
@@ -43,6 +45,28 @@ 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 net.kyori.adventure.text.@NotNull 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(net.kyori.adventure.text.@Nullable Component name);
|
||||
// Paper end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user