@Environment(value=CLIENT)
public interface FabricClientCommandSource
extends net.minecraft.command.CommandSource
CommandSource
for client-sided commands.Modifier and Type | Method and Description |
---|---|
net.minecraft.client.MinecraftClient |
getClient()
Gets the client instance used to run the command.
|
net.minecraft.client.network.ClientPlayerEntity |
getPlayer()
Gets the player that used the command.
|
net.minecraft.client.world.ClientWorld |
getWorld()
Gets the world where the player used the command.
|
void |
sendError(net.minecraft.text.Text message)
Sends an error message to the player.
|
void |
sendFeedback(net.minecraft.text.Text message)
Sends a feedback message to the player.
|
forEachMatching, forEachMatching, getBlockPositionSuggestions, getCompletions, getEntitySuggestions, getPlayerNames, getPositionSuggestions, getRecipeIds, getRegistryManager, getSoundIds, getTeamNames, getWorldKeys, hasPermissionLevel, method_27136, suggestColumnPositions, suggestFromIdentifier, suggestFromIdentifier, suggestIdentifiers, suggestIdentifiers, suggestIdentifiers, suggestMatching, suggestMatching, suggestMatching, suggestPositions
void sendFeedback(net.minecraft.text.Text message)
message
- the feedback messagevoid sendError(net.minecraft.text.Text message)
message
- the error messagenet.minecraft.client.MinecraftClient getClient()
net.minecraft.client.network.ClientPlayerEntity getPlayer()
net.minecraft.client.world.ClientWorld getWorld()