Class GeyserSpongeCommandExecutor
java.lang.Object
org.geysermc.geyser.command.CommandExecutor
org.geysermc.geyser.platform.sponge.command.GeyserSpongeCommandExecutor
- All Implemented Interfaces:
org.spongepowered.api.command.CommandCallable
public class GeyserSpongeCommandExecutor
extends CommandExecutor
implements org.spongepowered.api.command.CommandCallable
-
Field Summary
Fields inherited from class org.geysermc.geyser.command.CommandExecutor
geyser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionOptional<org.spongepowered.api.text.Text>
getHelp(org.spongepowered.api.command.CommandSource source)
Optional<org.spongepowered.api.text.Text>
getShortDescription(org.spongepowered.api.command.CommandSource source)
getSuggestions(org.spongepowered.api.command.CommandSource source, String arguments, org.spongepowered.api.world.Location<org.spongepowered.api.world.World> targetPosition)
org.spongepowered.api.text.Text
getUsage(org.spongepowered.api.command.CommandSource source)
org.spongepowered.api.command.CommandResult
boolean
testPermission(org.spongepowered.api.command.CommandSource source)
Methods inherited from class org.geysermc.geyser.command.CommandExecutor
getCommand, getGeyserSession, tabComplete
-
Constructor Details
-
GeyserSpongeCommandExecutor
-
-
Method Details
-
process
public org.spongepowered.api.command.CommandResult process(org.spongepowered.api.command.CommandSource source, String arguments)- Specified by:
process
in interfaceorg.spongepowered.api.command.CommandCallable
-
getSuggestions
public List<String> getSuggestions(org.spongepowered.api.command.CommandSource source, String arguments, @Nullable org.spongepowered.api.world.Location<org.spongepowered.api.world.World> targetPosition)- Specified by:
getSuggestions
in interfaceorg.spongepowered.api.command.CommandCallable
-
testPermission
public boolean testPermission(org.spongepowered.api.command.CommandSource source)- Specified by:
testPermission
in interfaceorg.spongepowered.api.command.CommandCallable
-
getShortDescription
public Optional<org.spongepowered.api.text.Text> getShortDescription(org.spongepowered.api.command.CommandSource source)- Specified by:
getShortDescription
in interfaceorg.spongepowered.api.command.CommandCallable
-
getHelp
public Optional<org.spongepowered.api.text.Text> getHelp(org.spongepowered.api.command.CommandSource source)- Specified by:
getHelp
in interfaceorg.spongepowered.api.command.CommandCallable
-
getUsage
public org.spongepowered.api.text.Text getUsage(org.spongepowered.api.command.CommandSource source)- Specified by:
getUsage
in interfaceorg.spongepowered.api.command.CommandCallable
-