Class PaperSuggestCommand
java.lang.Object
io.github.projectunified.craftcommand.example.paper.PaperSuggestCommand
Covers @Suggest in Paper context: field, method, @Greedy+@Suggest,
and suggest methods with different sender types.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetShapesWithCSS(io.papermc.paper.command.brigadier.CommandSourceStack sender) getShapesWithCustom(PaperSuggestCommand.CustomSender sender, String[] current) getShapesWithPlayer(org.bukkit.entity.Player sender, String[] current) getShapesWithSender(org.bukkit.command.CommandSender sender, String[] current) voidgreedySuggest(io.papermc.paper.command.brigadier.CommandSourceStack sender, String text) voidnameSuggest(io.papermc.paper.command.brigadier.CommandSourceStack sender, String color) resolveSender(io.papermc.paper.command.brigadier.CommandSourceStack sender) voidsuggestField(io.papermc.paper.command.brigadier.CommandSourceStack sender, String color) voidsuggestMethod(io.papermc.paper.command.brigadier.CommandSourceStack sender, String shape) voidsuggestMethodCSS(io.papermc.paper.command.brigadier.CommandSourceStack sender, String shape) voidsuggestMethodCustom(PaperSuggestCommand.CustomSender sender, String shape) voidsuggestMethodPlayer(io.papermc.paper.command.brigadier.CommandSourceStack sender, String shape) voidsuggestMethodSender(io.papermc.paper.command.brigadier.CommandSourceStack sender, String shape)
-
Field Details
-
colors
-
-
Constructor Details
-
PaperSuggestCommand
public PaperSuggestCommand()
-
-
Method Details
-
getShapes
-
getShapesWithCSS
public Collection<String> getShapesWithCSS(io.papermc.paper.command.brigadier.CommandSourceStack sender) -
getShapesWithSender
public Collection<String> getShapesWithSender(org.bukkit.command.CommandSender sender, String[] current) -
getShapesWithPlayer
-
resolveSender
public PaperSuggestCommand.CustomSender resolveSender(io.papermc.paper.command.brigadier.CommandSourceStack sender) -
getShapesWithCustom
public Collection<String> getShapesWithCustom(PaperSuggestCommand.CustomSender sender, String[] current) -
suggestField
public void suggestField(io.papermc.paper.command.brigadier.CommandSourceStack sender, String color) -
suggestMethod
public void suggestMethod(io.papermc.paper.command.brigadier.CommandSourceStack sender, String shape) -
suggestMethodCSS
public void suggestMethodCSS(io.papermc.paper.command.brigadier.CommandSourceStack sender, String shape) -
suggestMethodSender
public void suggestMethodSender(io.papermc.paper.command.brigadier.CommandSourceStack sender, String shape) -
suggestMethodPlayer
public void suggestMethodPlayer(io.papermc.paper.command.brigadier.CommandSourceStack sender, String shape) -
suggestMethodCustom
-
greedySuggest
public void greedySuggest(io.papermc.paper.command.brigadier.CommandSourceStack sender, String text) -
nameSuggest
-