tutorial:command_suggestions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorials:commands:suggestions [2020/11/25 08:11] – Revert previous edit: wrong paste location i509vcb | tutorial:command_suggestions [2022/09/04 07:06] – grammar solidblock | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Licensing: The code in this article is licensed under the “Creative Commons Zero v1.0 Universal” license. The license grants you the rights to use the code examples shown in this article in your own mods. | ||
+ | |||
====== Command Suggestions ====== | ====== Command Suggestions ====== | ||
Line 5: | Line 7: | ||
===== Suggestion Providers ===== | ===== Suggestion Providers ===== | ||
- | A '' | + | A '' |
Suggestions can be contextual since a suggestion provider gives you access to the current command context. | Suggestions can be contextual since a suggestion provider gives you access to the current command context. | ||
Line 12: | Line 13: | ||
===== An example suggestion provider ===== | ===== An example suggestion provider ===== | ||
- | For example | + | For example |
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" |
tutorial/command_suggestions.txt · Last modified: 2023/11/18 12:06 by solidblock