FabricClientCommandSource

public interface FabricClientCommandSource implements CommandSource

Extensions to CommandSource for client-sided commands.

Functions

forEachMatching
Link copied to clipboard
static void forEachMatching<T>(Iterable<T> candidates, String string, Function<T, Identifier> identifier, Consumer<T> action)
getBlockPositionSuggestions
Link copied to clipboard
Collection<CommandSource.RelativePositiongetBlockPositionSuggestions()
getClient
Link copied to clipboard
abstract MinecraftClient getClient()
Gets the client instance used to run the command.
getCompletions
Link copied to clipboard
abstract CompletableFuture<SuggestionsgetCompletions(CommandContext<CommandSource> context, SuggestionsBuilder builder)
getEntitySuggestions
Link copied to clipboard
Collection<StringgetEntitySuggestions()
getPlayer
Link copied to clipboard
abstract ClientPlayerEntity getPlayer()
Gets the player that used the command.
getPlayerNames
Link copied to clipboard
abstract Collection<StringgetPlayerNames()
getPositionSuggestions
Link copied to clipboard
Collection<CommandSource.RelativePositiongetPositionSuggestions()
getRecipeIds
Link copied to clipboard
abstract Stream<IdentifiergetRecipeIds()
getRegistryManager
Link copied to clipboard
abstract DynamicRegistryManager getRegistryManager()
getSoundIds
Link copied to clipboard
abstract Collection<IdentifiergetSoundIds()
getTeamNames
Link copied to clipboard
abstract Collection<StringgetTeamNames()
getWorld
Link copied to clipboard
abstract ClientWorld getWorld()
Gets the world where the player used the command.
getWorldKeys
Link copied to clipboard
abstract Set<RegistryKey<World>> getWorldKeys()
hasPermissionLevel
Link copied to clipboard
abstract boolean hasPermissionLevel(int level)
method_27136
Link copied to clipboard
static boolean method_27136(String string, String string2)
method_35510
Link copied to clipboard
static CompletableFuture<Suggestionsmethod_35510<T>(Iterable<T> iterable, SuggestionsBuilder suggestionsBuilder, Function<T, String> function, Function<T, Message> function2)
sendError
Link copied to clipboard
abstract void sendError(Text message)
Sends an error message to the player.
sendFeedback
Link copied to clipboard
abstract void sendFeedback(Text message)
Sends a feedback message to the player.
suggestColumnPositions
Link copied to clipboard
static CompletableFuture<SuggestionssuggestColumnPositions(String string, Collection<CommandSource.RelativePosition> collection, SuggestionsBuilder suggestionsBuilder, Predicate<String> predicate)
suggestFromIdentifier
Link copied to clipboard
static CompletableFuture<SuggestionssuggestFromIdentifier<T>(Iterable<T> candidates, SuggestionsBuilder builder, Function<T, Identifier> identifier, Function<T, Message> tooltip)
suggestIdentifiers
Link copied to clipboard
static CompletableFuture<SuggestionssuggestIdentifiers(Iterable<Identifier> candidates, SuggestionsBuilder builder, String string)
suggestMatching
Link copied to clipboard
static CompletableFuture<SuggestionssuggestMatching(Iterable<String> iterable, SuggestionsBuilder suggestionsBuilder)
suggestPositions
Link copied to clipboard
static CompletableFuture<SuggestionssuggestPositions(String string, Collection<CommandSource.RelativePosition> candidates, SuggestionsBuilder builder, Predicate<String> predicate)

Sources

jvm source
Link copied to clipboard