mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
#815: Add methods to edit custom chat completions
By: Parker Hawke <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
340655c920
commit
3bcb2ea2fb
1 changed files with 31 additions and 0 deletions
|
@ -637,6 +637,37 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||||
*/
|
*/
|
||||||
public void sendMap(@NotNull MapView map);
|
public void sendMap(@NotNull MapView map);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add custom chat completion suggestions shown to the player while typing a
|
||||||
|
* message.
|
||||||
|
*
|
||||||
|
* @param completions the completions to send
|
||||||
|
*/
|
||||||
|
public void addCustomChatCompletions(@NotNull Collection<String> completions);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove custom chat completion suggestions shown to the player while
|
||||||
|
* typing a message.
|
||||||
|
*
|
||||||
|
* Online player names cannot be removed with this method. This will affect
|
||||||
|
* only custom completions added by {@link #addCustomChatCompletions(Collection)}
|
||||||
|
* or {@link #setCustomChatCompletions(Collection)}.
|
||||||
|
*
|
||||||
|
* @param completions the completions to remove
|
||||||
|
*/
|
||||||
|
public void removeCustomChatCompletions(@NotNull Collection<String> completions);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the list of chat completion suggestions shown to the player while
|
||||||
|
* typing a message.
|
||||||
|
* <p>
|
||||||
|
* If completions were set previously, this method will remove them all and
|
||||||
|
* replace them with the provided completions.
|
||||||
|
*
|
||||||
|
* @param completions the completions to set
|
||||||
|
*/
|
||||||
|
public void setCustomChatCompletions(@NotNull Collection<String> completions);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Forces an update of the player's entire inventory.
|
* Forces an update of the player's entire inventory.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue