Uses of Class
net.minecraft.server.command.ServerCommandSource
Package
Description
-
Uses of ServerCommandSource in net.minecraft.block.entity
Modifier and TypeMethodDescriptionprivate ServerCommandSource
LecternBlockEntity.getCommandSource
(@Nullable PlayerEntity player) SignBlockEntity.getCommandSource
(@Nullable ServerPlayerEntity player) -
Uses of ServerCommandSource in net.minecraft.command
Modifier and TypeFieldDescription(package private) static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
StorageDataObject.SUGGESTION_PROVIDER
Modifier and TypeMethodDescriptionprivate void
EntitySelector.checkSourcePermission
(ServerCommandSource serverCommandSource) EntitySelector.getEntities
(ServerCommandSource serverCommandSource) EntitySelector.getEntity
(ServerCommandSource serverCommandSource) EntitySelector.getPlayer
(ServerCommandSource serverCommandSource) EntitySelector.getPlayers
(ServerCommandSource serverCommandSource) Modifier and TypeMethodDescription(package private) static DataCommandStorage
StorageDataObject.of
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext) -
Uses of ServerCommandSource in net.minecraft.command.argument
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
ScoreHolderArgumentType.SUGGESTION_PROVIDER
Modifier and TypeMethodDescriptionMessageArgumentType.MessageFormat.format
(ServerCommandSource source, boolean bool) MessageArgumentType.MessageSelector.format
(ServerCommandSource source) float
AngleArgumentType.Angle.getAngle
(ServerCommandSource source) Collection<com.mojang.authlib.GameProfile>
GameProfileArgumentType.GameProfileArgument.getNames
(ServerCommandSource serverCommandSource) Collection<com.mojang.authlib.GameProfile>
GameProfileArgumentType.SelectorBacked.getNames
(ServerCommandSource serverCommandSource) ScoreHolderArgumentType.ScoreHolder.getNames
(ServerCommandSource source, Supplier<Collection<String>> supplier) ScoreHolderArgumentType.SelectorScoreHolder.getNames
(ServerCommandSource source, Supplier<Collection<String>> supplier) EntityAnchorArgumentType.EntityAnchor.positionAt
(ServerCommandSource serverCommandSource) default BlockPos
PosArgument.toAbsoluteBlockPos
(ServerCommandSource source) DefaultPosArgument.toAbsolutePos
(ServerCommandSource source) LookingPosArgument.toAbsolutePos
(ServerCommandSource source) PosArgument.toAbsolutePos
(ServerCommandSource source) DefaultPosArgument.toAbsoluteRotation
(ServerCommandSource source) LookingPosArgument.toAbsoluteRotation
(ServerCommandSource source) PosArgument.toAbsoluteRotation
(ServerCommandSource source) Modifier and TypeMethodDescriptionItemPredicateArgumentType.ItemPredicateArgument.create
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext) static Advancement
IdentifierArgumentType.getAdvancementArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static float
AngleArgumentType.getAngle
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static EntityAttribute
IdentifierArgumentType.getAttributeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static BlockPos
BlockPosArgumentType.getBlockPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Predicate<CachedBlockPosition>
BlockPredicateArgumentType.getBlockPredicate
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static BlockStateArgument
BlockStateArgumentType.getBlockState
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Formatting
ColorArgumentType.getColor
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static ColumnPos
ColumnPosArgumentType.getColumnPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static ScoreboardCriterion
ScoreboardCriterionArgumentType.getCriterion
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static ServerWorld
DimensionArgumentType.getDimensionArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Enchantment
EnchantmentArgumentType.getEnchantment
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<? extends Entity>
EntityArgumentType.getEntities
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Entity
EntityArgumentType.getEntity
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) EntityAnchorArgumentType.getEntityAnchor
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static Identifier
EntitySummonArgumentType.getEntitySummon
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) (package private) static CommandFunction
CommandFunctionArgumentType.getFunction
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) static TestFunction
TestFunctionArgumentType.getFunction
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) com.mojang.datafixers.util.Pair<Identifier,
com.mojang.datafixers.util.Either<CommandFunction, Tag<CommandFunction>>> CommandFunctionArgumentType.FunctionArgument.getFunctionOrTag
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext) static com.mojang.datafixers.util.Pair<Identifier,
com.mojang.datafixers.util.Either<CommandFunction, Tag<CommandFunction>>> CommandFunctionArgumentType.getFunctionOrTag
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) CommandFunctionArgumentType.FunctionArgument.getFunctions
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext) static Collection<CommandFunction>
CommandFunctionArgumentType.getFunctions
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) (package private) static Tag<CommandFunction>
CommandFunctionArgumentType.getFunctionTag
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id) static Identifier
IdentifierArgumentType.getIdentifier
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static LootFunction
IdentifierArgumentType.getItemModifierArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) ItemPredicateArgumentType.getItemPredicate
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static int
ItemSlotArgumentType.getItemSlot
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static BlockPos
BlockPosArgumentType.getLoadedBlockPos
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Text
MessageArgumentType.getMessage
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> command, String name) static NbtPathArgumentType.NbtPath
NbtPathArgumentType.getNbtPath
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static ScoreboardObjective
ScoreboardObjectiveArgumentType.getObjective
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) OperationArgumentType.getOperation
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static Collection<? extends Entity>
EntityArgumentType.getOptionalEntities
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static Collection<ServerPlayerEntity>
EntityArgumentType.getOptionalPlayers
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static ParticleEffect
ParticleEffectArgumentType.getParticle
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static ServerPlayerEntity
EntityArgumentType.getPlayer
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static Collection<ServerPlayerEntity>
EntityArgumentType.getPlayers
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static PosArgument
Vec3ArgumentType.getPosArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static LootCondition
IdentifierArgumentType.getPredicateArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static Collection<com.mojang.authlib.GameProfile>
GameProfileArgumentType.getProfileArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static NumberRange.FloatRange
NumberRangeArgumentType.FloatRangeArgumentType.getRangeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static NumberRange.IntRange
NumberRangeArgumentType.IntRangeArgumentType.getRangeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Recipe<?>
IdentifierArgumentType.getRecipeArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName) static PosArgument
RotationArgumentType.getRotation
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<String>
ScoreHolderArgumentType.getScoreboardScoreHolders
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static int
ScoreboardSlotArgumentType.getScoreboardSlot
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static String
ScoreHolderArgumentType.getScoreHolder
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<String>
ScoreHolderArgumentType.getScoreHolders
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Collection<String>
ScoreHolderArgumentType.getScoreHolders
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, Supplier<Collection<String>> players) static StatusEffect
StatusEffectArgumentType.getStatusEffect
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static EnumSet<Direction.Axis>
SwizzleArgumentType.getSwizzle
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) static Team
TeamArgumentType.getTeam
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static String
TestClassArgumentType.getTestClass
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Text
TextArgumentType.getTextArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static UUID
UuidArgumentType.getUuid
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Vec2f
Vec2ArgumentType.getVec2
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static Vec3d
Vec3ArgumentType.getVec3
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) static ScoreboardObjective
ScoreboardObjectiveArgumentType.getWritableObjective
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of ServerCommandSource in net.minecraft.command.suggestion
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
SuggestionProviders.ALL_BIOMES
static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
SuggestionProviders.ALL_RECIPES
static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
SuggestionProviders.AVAILABLE_SOUNDS
static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
SuggestionProviders.SUMMONABLE_ENTITIES
-
Uses of ServerCommandSource in net.minecraft.entity
Modifier and TypeMethodDescriptionEntity.getCommandSource()
Creates a command source which represents this entity. -
Uses of ServerCommandSource in net.minecraft.entity.vehicle
-
Uses of ServerCommandSource in net.minecraft.item
Modifier and TypeMethodDescriptionprivate static String
WrittenBookItem.method_33826
(@Nullable ServerCommandSource serverCommandSource, @Nullable PlayerEntity playerEntity, String string) static boolean
WrittenBookItem.resolve
(ItemStack book, @Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player) -
Uses of ServerCommandSource in net.minecraft.server
Modifier and TypeMethodDescriptionMinecraftServer.getCommandSource()
Creates a command source which represents this Minecraft server instance.Modifier and TypeMethodDescriptionvoid
MinecraftServer.kickNonWhitelistedPlayers
(ServerCommandSource source) -
Uses of ServerCommandSource in net.minecraft.server.command
Modifier and TypeFieldDescriptionprivate static final BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>>
ExecuteCommand.BINARY_RESULT_CONSUMER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
DatapackCommand.DISABLED_CONTAINERS_SUGGESTION_PROVIDER
private final com.mojang.brigadier.CommandDispatcher<ServerCommandSource>
CommandManager.dispatcher
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
DatapackCommand.ENABLED_CONTAINERS_SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
ExecuteCommand.LOOT_CONDITIONS
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
ItemCommand.MODIFIER_SUGGESTION_PROVIDER
private final com.mojang.brigadier.ResultConsumer<ServerCommandSource>
ServerCommandSource.resultConsumer
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
AdvancementCommand.SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
AttributeCommand.SUGGESTION_PROVIDER
static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
BossBarCommand.SUGGESTION_PROVIDER
static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
FunctionCommand.SUGGESTION_PROVIDER
static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
LootCommand.SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>
ScheduleCommand.SUGGESTION_PROVIDER
Modifier and TypeMethodDescriptionprivate static <T extends com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
T>>
TLootCommand.addTargetArguments
(T rootArgument, LootCommand.SourceConstructor sourceConstructor) Modifier and TypeMethodDescriptionprivate static ServerCommandSource
ExecuteCommand.executeStoreBossbar
(ServerCommandSource source, CommandBossBar bossBar, boolean storeInValue, boolean requestResult) private static ServerCommandSource
ExecuteCommand.executeStoreData
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, IntFunction<NbtElement> nbtSetter, boolean requestResult) private static ServerCommandSource
ExecuteCommand.executeStoreScore
(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, boolean requestResult) ServerCommandSource.mergeConsumers
(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> merger) ServerCommandSource.withConsumer
(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer) ServerCommandSource.withEntity
(Entity entity) ServerCommandSource.withEntityAnchor
(EntityAnchorArgumentType.EntityAnchor anchor) ServerCommandSource.withLevel
(int level) ServerCommandSource.withLookingAt
(Entity entity, EntityAnchorArgumentType.EntityAnchor anchor) ServerCommandSource.withLookingAt
(Vec3d position) ServerCommandSource.withMaxLevel
(int level) ServerCommandSource.withOutput
(CommandOutput output) ServerCommandSource.withPosition
(Vec3d position) ServerCommandSource.withRotation
(Vec2f rotation) ServerCommandSource.withSilent()
ServerCommandSource.withWorld
(ServerWorld world) Modifier and TypeMethodDescriptioncom.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> DataCommand.ObjectType.addArgumentsToBuilder
(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> argument, Function<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>> argumentAdder) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addBlocksConditionLogic
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, boolean masked) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addConditionArguments
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> argumentBuilder, boolean positive) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addConditionLogic
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, ExecuteCommand.Condition condition) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> DataCommand.addModifyArgument
(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, DataCommand.ModifyArgumentCreator> subArgumentAdder) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addStoreArguments
(com.mojang.brigadier.tree.LiteralCommandNode<ServerCommandSource> node, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> builder, boolean requestResult) static <T> com.mojang.brigadier.builder.RequiredArgumentBuilder<ServerCommandSource,
T> com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> LootCommand.SourceConstructor.construct
(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, LootCommand.Target target) com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> DataCommand.ModifyArgumentCreator.create
(DataCommand.ModifyOperation modifier) com.mojang.brigadier.CommandDispatcher<ServerCommandSource>
CommandManager.getDispatcher()
private static com.mojang.brigadier.Command<ServerCommandSource>
ExecuteCommand.getExistsConditionExecute
(boolean positive, ExecuteCommand.ExistsCondition condition) private static Collection<ServerCommandSource>
ExecuteCommand.getSourceOrEmptyForConditionFork
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean positive, boolean value) static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>
PlaySoundCommand.makeArgumentsForCategory
(SoundCategory category) private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>
ScoreboardCommand.makeRenderTypeArguments()
Modifier and TypeMethodDescriptionprivate static int
BossBarCommand.addBossBar
(ServerCommandSource source, Identifier name, Text displayName) private static int
ScheduleCommand.clearEvent
(ServerCommandSource source, String eventName) private static int
ClearCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount) private static int
CloneCommand.execute
(ServerCommandSource source, BlockPos begin, BlockPos end, BlockPos destination, Predicate<CachedBlockPosition> filter, CloneCommand.Mode mode) int
CommandManager.execute
(ServerCommandSource commandSource, String command) private static int
DebugMobSpawningCommand.execute
(ServerCommandSource source, SpawnGroup group, BlockPos pos) private static int
DebugPathCommand.execute
(ServerCommandSource source, BlockPos pos) private static int
DefaultGameModeCommand.execute
(ServerCommandSource source, GameMode defaultGameMode) static int
DifficultyCommand.execute
(ServerCommandSource source, Difficulty difficulty) private static int
EnchantCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets, Enchantment enchantment, int level) private static int
FillCommand.execute
(ServerCommandSource source, BlockBox range, BlockStateArgument block, FillCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> filter) private static int
FunctionCommand.execute
(ServerCommandSource source, Collection<CommandFunction> functions) private static int
GiveCommand.execute
(ServerCommandSource source, ItemStackArgument item, Collection<ServerPlayerEntity> targets, int count) private static int
KickCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text reason) private static int
KillCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets) private static int
ListCommand.execute
(ServerCommandSource source, Function<ServerPlayerEntity, Text> nameProvider) private static int
LocateBiomeCommand.execute
(ServerCommandSource source, Identifier id) private static int
LocateCommand.execute
(ServerCommandSource source, StructureFeature<?> structure) private static int
MessageCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text message) private static int
ParticleCommand.execute
(ServerCommandSource source, ParticleEffect parameters, Vec3d pos, Vec3d delta, float speed, int count, boolean force, Collection<ServerPlayerEntity> viewers) private static int
PlaySoundCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume) private static int
PublishCommand.execute
(ServerCommandSource source, int port) private static int
ScheduleCommand.execute
(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier, com.mojang.datafixers.util.Either<CommandFunction, Tag<CommandFunction>>> function, int time, boolean replace) private static int
SetBlockCommand.execute
(ServerCommandSource source, BlockPos pos, BlockStateArgument block, SetBlockCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> condition) private static int
SetWorldSpawnCommand.execute
(ServerCommandSource source, BlockPos pos, float angle) private static int
SpawnPointCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, BlockPos pos, float angle) private static int
SpectateCommand.execute
(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player) private static int
SpreadPlayersCommand.execute
(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int maxY, boolean respectTeams, Collection<? extends Entity> players) private static int
StopSoundCommand.execute
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, @Nullable SoundCategory category, @Nullable Identifier sound) private static int
SummonCommand.execute
(ServerCommandSource source, Identifier entity, Vec3d pos, NbtCompound nbt, boolean initialize) private static int
TeamMsgCommand.execute
(ServerCommandSource source, Text message) private static int
TeleportCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets, Entity destination) private static int
TeleportCommand.execute
(ServerCommandSource source, Collection<? extends Entity> targets, ServerWorld world, PosArgument location, @Nullable PosArgument rotation, @Nullable TeleportCommand.LookTarget facingLocation) private static int
ExperienceCommand.executeAdd
(ServerCommandSource source, Collection<? extends ServerPlayerEntity> targets, int amount, ExperienceCommand.Component component) private static int
ScoreboardCommand.executeAdd
(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score) private static int
TagCommand.executeAdd
(ServerCommandSource source, Collection<? extends Entity> targets, String tag) private static int
TeamCommand.executeAdd
(ServerCommandSource source, String team) private static int
TeamCommand.executeAdd
(ServerCommandSource source, String team, Text displayName) static int
TimeCommand.executeAdd
(ServerCommandSource source, int time) private static int
TriggerCommand.executeAdd
(ServerCommandSource source, ScoreboardPlayerScore score, int value) private static int
ScoreboardCommand.executeAddObjective
(ServerCommandSource source, String objective, ScoreboardCriterion criteria, Text displayName) private static int
AdvancementCommand.executeAdvancement
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Collection<Advancement> selection) private static int
AttributeCommand.executeBaseValueGet
(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) private static int
AttributeCommand.executeBaseValueSet
(ServerCommandSource source, Entity target, EntityAttribute attribute, double value) private static int
LootCommand.executeBlock
(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static int
ItemCommand.executeBlockCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot) private static int
ItemCommand.executeBlockCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeBlockCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot) private static int
ItemCommand.executeBlockCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeBlockModify
(ServerCommandSource source, BlockPos pos, int slot, LootFunction modifier) private static int
ItemCommand.executeBlockReplace
(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack) private static int
WorldBorderCommand.executeBuffer
(ServerCommandSource source, float distance) private static int
WorldBorderCommand.executeCenter
(ServerCommandSource source, Vec2f pos) private static int
ForceLoadCommand.executeChange
(ServerCommandSource source, ColumnPos from, ColumnPos to, boolean forceLoaded) private static int
RaidCommand.executeCheck
(ServerCommandSource source) private static int
EffectCommand.executeClear
(ServerCommandSource source, Collection<? extends Entity> targets) private static int
EffectCommand.executeClear
(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect) private static int
TitleCommand.executeClear
(ServerCommandSource source, Collection<ServerPlayerEntity> targets) private static int
WeatherCommand.executeClear
(ServerCommandSource source, int duration) private static int
TestCommand.executeClearAll
(ServerCommandSource source, int radius) private static int
ScoreboardCommand.executeClearDisplay
(ServerCommandSource source, int slot) private static int
TestCommand.executeCreate
(ServerCommandSource source, String structure, int x, int y, int z) private static int
AdvancementCommand.executeCriterion
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Advancement advancement, String criterion) private static int
WorldBorderCommand.executeDamage
(ServerCommandSource source, float damagePerBlock) private static int
DatapackCommand.executeDisable
(ServerCommandSource source, ResourcePackProfile container) private static int
TeamCommand.executeEmpty
(ServerCommandSource source, Team team) private static int
DatapackCommand.executeEnable
(ServerCommandSource source, ResourcePackProfile container, DatapackCommand.PackAdder packAdder) private static int
ScoreboardCommand.executeEnable
(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective) private static int
ItemCommand.executeEntityCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommand.executeEntityCopyBlock
(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot) private static int
ItemCommand.executeEntityCopyEntity
(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityModify
(ServerCommandSource source, Collection<? extends Entity> targets, int slot, LootFunction modifier) private static int
ItemCommand.executeEntityReplace
(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack) private static int
TestCommand.executeExport
(ServerCommandSource source) private static int
TestCommand.executeExport
(ServerCommandSource source, String structure) private static int
DebugCommand.executeFunction
(ServerCommandSource source, Collection<CommandFunction> functions) private static int
DataCommand.executeGet
(ServerCommandSource source, DataCommandObject object) private static int
DataCommand.executeGet
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path) private static int
DataCommand.executeGet
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, double scale) private static int
ScoreboardCommand.executeGet
(ServerCommandSource source, String target, ScoreboardObjective objective) private static int
WorldBorderCommand.executeGet
(ServerCommandSource source) private static int
EffectCommand.executeGive
(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect, @Nullable Integer seconds, int amplifier, boolean showParticles) private static int
RecipeCommand.executeGive
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Collection<Recipe<?>> recipes) private static int
RaidCommand.executeGlow
(ServerCommandSource source) private static int
TestCommand.executeImport
(ServerCommandSource source, String structure) private static int
LootCommand.executeInsert
(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static int
TeamCommand.executeJoin
(ServerCommandSource source, Team team, Collection<String> members) private static int
TeamCommand.executeLeave
(ServerCommandSource source, Collection<String> members) private static int
DatapackCommand.executeList
(ServerCommandSource source) private static int
TagCommand.executeList
(ServerCommandSource source, Collection<? extends Entity> targets) private static int
DatapackCommand.executeListAvailable
(ServerCommandSource source) private static int
DatapackCommand.executeListEnabled
(ServerCommandSource source) private static int
TeamCommand.executeListMembers
(ServerCommandSource source, Team team) private static int
ScoreboardCommand.executeListObjectives
(ServerCommandSource source) private static int
ScoreboardCommand.executeListPlayers
(ServerCommandSource source) private static int
ScoreboardCommand.executeListScores
(ServerCommandSource source, String target) private static int
TeamCommand.executeListTeams
(ServerCommandSource source) private static int
DataCommand.executeMerge
(ServerCommandSource source, DataCommandObject object, NbtCompound nbt) private static int
AttributeCommand.executeModifierAdd
(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation) private static int
AttributeCommand.executeModifierRemove
(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid) private static int
AttributeCommand.executeModifierValueGet
(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, double multiplier) private static int
TeamCommand.executeModifyCollisionRule
(ServerCommandSource source, Team team, AbstractTeam.CollisionRule collisionRule) private static int
TeamCommand.executeModifyColor
(ServerCommandSource source, Team team, Formatting color) private static int
TeamCommand.executeModifyDeathMessageVisibility
(ServerCommandSource source, Team team, AbstractTeam.VisibilityRule visibility) private static int
TeamCommand.executeModifyDisplayName
(ServerCommandSource source, Team team, Text displayName) private static int
TeamCommand.executeModifyFriendlyFire
(ServerCommandSource source, Team team, boolean allowed) private static int
TeamCommand.executeModifyNametagVisibility
(ServerCommandSource source, Team team, AbstractTeam.VisibilityRule visibility) private static int
ScoreboardCommand.executeModifyObjective
(ServerCommandSource source, ScoreboardObjective objective, Text displayName) private static int
TeamCommand.executeModifyPrefix
(ServerCommandSource source, Team team, Text prefix) private static int
ScoreboardCommand.executeModifyRenderType
(ServerCommandSource source, ScoreboardObjective objective, ScoreboardCriterion.RenderType type) private static int
TeamCommand.executeModifySeeFriendlyInvisibles
(ServerCommandSource source, Team team, boolean allowed) private static int
TeamCommand.executeModifySuffix
(ServerCommandSource source, Team team, Text suffix) private static int
ListCommand.executeNames
(ServerCommandSource source) private static int
ScoreboardCommand.executeOperation
(ServerCommandSource source, Collection<String> targets, ScoreboardObjective targetObjective, OperationArgumentType.Operation operation, Collection<String> sources, ScoreboardObjective sourceObjectives) private static int
TestCommand.executePos
(ServerCommandSource source, String variableName) private static int
ExperienceCommand.executeQuery
(ServerCommandSource source, ServerPlayerEntity player, ExperienceCommand.Component component) private static int
ForceLoadCommand.executeQuery
(ServerCommandSource source) private static int
ForceLoadCommand.executeQuery
(ServerCommandSource source, ColumnPos pos) (package private) static <T extends GameRules.Rule<T>>
intGameRuleCommand.executeQuery
(ServerCommandSource source, GameRules.Key<T> key) private static int
TimeCommand.executeQuery
(ServerCommandSource source, int time) private static int
WeatherCommand.executeRain
(ServerCommandSource source, int duration) private static int
DataCommand.executeRemove
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path) private static int
ScoreboardCommand.executeRemove
(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score) private static int
TagCommand.executeRemove
(ServerCommandSource source, Collection<? extends Entity> targets, String tag) private static int
TeamCommand.executeRemove
(ServerCommandSource source, Team team) private static int
ForceLoadCommand.executeRemoveAll
(ServerCommandSource source) private static int
ScoreboardCommand.executeRemoveObjective
(ServerCommandSource source, ScoreboardObjective objective) private static int
TestCommand.executeRerunFailed
(ServerCommandSource source, boolean requiredOnly, int rotationSteps, int sizeZ) private static int
ScoreboardCommand.executeReset
(ServerCommandSource source, Collection<String> targets) private static int
ScoreboardCommand.executeReset
(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective) private static int
TitleCommand.executeReset
(ServerCommandSource source, Collection<ServerPlayerEntity> targets) private static int
TestCommand.executeRun
(ServerCommandSource source, TestFunction testFunction, int rotationSteps) private static int
TestCommand.executeRunAll
(ServerCommandSource source, int rotationSteps, int sizeZ) private static int
TestCommand.executeRunAll
(ServerCommandSource source, String testClass, int rotationSteps, int sizeZ) private static int
TestCommand.executeRunThese
(ServerCommandSource source) private static int
TestCommand.executeRunThis
(ServerCommandSource source) private static int
ExperienceCommand.executeSet
(ServerCommandSource source, Collection<? extends ServerPlayerEntity> targets, int amount, ExperienceCommand.Component component) private static int
ScoreboardCommand.executeSet
(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score) static int
TimeCommand.executeSet
(ServerCommandSource source, int time) private static int
TriggerCommand.executeSet
(ServerCommandSource source, ScoreboardPlayerScore score, int value) private static int
WorldBorderCommand.executeSet
(ServerCommandSource source, double distance, long time) private static int
ScoreboardCommand.executeSetDisplay
(ServerCommandSource source, int slot, ScoreboardObjective objective) private static int
RaidCommand.executeSetOmen
(ServerCommandSource source, int level) private static int
TriggerCommand.executeSimple
(ServerCommandSource source, ScoreboardPlayerScore score) private static int
RaidCommand.executeSound
(ServerCommandSource source, Text type) private static int
LootCommand.executeSpawn
(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender) private static int
RaidCommand.executeSpawnLeader
(ServerCommandSource source) private static int
DebugCommand.executeStart
(ServerCommandSource source) private static int
RaidCommand.executeStart
(ServerCommandSource source, int level) private static int
DebugCommand.executeStop
(ServerCommandSource source) private static int
RaidCommand.executeStop
(ServerCommandSource source) private static ServerCommandSource
ExecuteCommand.executeStoreBossbar
(ServerCommandSource source, CommandBossBar bossBar, boolean storeInValue, boolean requestResult) private static ServerCommandSource
ExecuteCommand.executeStoreData
(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, IntFunction<NbtElement> nbtSetter, boolean requestResult) private static ServerCommandSource
ExecuteCommand.executeStoreScore
(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, boolean requestResult) private static int
RecipeCommand.executeTake
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Collection<Recipe<?>> recipes) private static int
WeatherCommand.executeThunder
(ServerCommandSource source, int duration) private static int
TitleCommand.executeTimes
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, int fadeIn, int stay, int fadeOut) private static int
TitleCommand.executeTitle
(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text title, String titleType, Function<Text, Packet<?>> constructor) private static int
ListCommand.executeUuids
(ServerCommandSource source) private static int
AttributeCommand.executeValueGet
(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier) private static int
WorldBorderCommand.executeWarningDistance
(ServerCommandSource source, int distance) private static int
WorldBorderCommand.executeWarningTime
(ServerCommandSource source, int time) private static Inventory
LootCommand.getBlockInventory
(ServerCommandSource source, BlockPos pos) private static ItemStack
LootCommand.getHeldItem
(ServerCommandSource source, EquipmentSlot slot) private static Inventory
ItemCommand.getInventoryAtPos
(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception) private static int
BossBarCommand.getMaxValue
(ServerCommandSource source, CommandBossBar bossBar) private static int
BossBarCommand.getPlayers
(ServerCommandSource source, CommandBossBar bossBar) private static ItemStack
ItemCommand.getStackInSlotFromInventoryAt
(ServerCommandSource source, BlockPos pos, int slotId) private static ItemStack
ItemCommand.getStackWithModifier
(ServerCommandSource source, LootFunction modifier, ItemStack stack) private static int
BossBarCommand.getValue
(ServerCommandSource source, CommandBossBar bossBar) private static int
BossBarCommand.isVisible
(ServerCommandSource source, CommandBossBar bossBar) private static int
BossBarCommand.listBossBars
(ServerCommandSource source) void
TeleportCommand.LookTarget.look
(ServerCommandSource source, Entity entity) private void
CommandManager.makeTreeForSource
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> tree, com.mojang.brigadier.tree.CommandNode<CommandSource> result, ServerCommandSource source, Map<com.mojang.brigadier.tree.CommandNode<ServerCommandSource>, com.mojang.brigadier.tree.CommandNode<CommandSource>> resultNodes) private static int
BossBarCommand.removeBossBar
(ServerCommandSource source, CommandBossBar bossBar) private static void
TestCommand.run
(ServerCommandSource source, Collection<TestFunction> testFunctions, int rotationSteps, int int2) static int
LocateCommand.sendCoordinates
(ServerCommandSource source, String structure, BlockPos sourcePos, BlockPos structurePos, String successMessage) private static void
LootCommand.sendDroppedFeedback
(ServerCommandSource source, List<ItemStack> stacks) private static void
LootCommand.sendDroppedFeedback
(ServerCommandSource source, List<ItemStack> stacks, Identifier lootTable) private static void
GameModeCommand.sendFeedback
(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode) private static void
TestCommand.sendMessage
(ServerCommandSource source, String message) private static int
BossBarCommand.setColor
(ServerCommandSource source, CommandBossBar bossBar, BossBar.Color color) private static int
BossBarCommand.setMaxValue
(ServerCommandSource source, CommandBossBar bossBar, int value) private static int
BossBarCommand.setName
(ServerCommandSource source, CommandBossBar bossBar, Text name) private static int
BossBarCommand.setPlayers
(ServerCommandSource source, CommandBossBar bossBar, Collection<ServerPlayerEntity> players) private static int
BossBarCommand.setStyle
(ServerCommandSource source, CommandBossBar bossBar, BossBar.Style style) private static int
BossBarCommand.setValue
(ServerCommandSource source, CommandBossBar bossBar, int value) private static int
BossBarCommand.setVisible
(ServerCommandSource source, CommandBossBar bossBar, boolean visible) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
ScoreboardCommand.suggestDisabled
(ServerCommandSource source, Collection<String> targets, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
TriggerCommand.suggestObjectives
(ServerCommandSource source, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) private static void
TeleportCommand.teleport
(ServerCommandSource source, Entity target, ServerWorld world, double x, double y, double z, Set<PlayerPositionLookS2CPacket.Flag> movementFlags, float yaw, float pitch, @Nullable TeleportCommand.LookTarget facingLocation) private static boolean
ExecuteCommand.testLootCondition
(ServerCommandSource source, LootCondition condition) static void
ReloadCommand.tryReloadDataPacks
(Collection<String> dataPacks, ServerCommandSource source) Modifier and TypeMethodDescriptionint
LootCommand.Target.accept
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, List<ItemStack> items, LootCommand.FeedbackMessage messageSender) com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> DataCommand.ObjectType.addArgumentsToBuilder
(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> argument, Function<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>> argumentAdder) com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> DataCommand.ObjectType.addArgumentsToBuilder
(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> argument, Function<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>> argumentAdder) com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> DataCommand.ObjectType.addArgumentsToBuilder
(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> argument, Function<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>> argumentAdder) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addBlocksConditionLogic
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, boolean masked) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addBlocksConditionLogic
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, boolean masked) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addConditionArguments
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> argumentBuilder, boolean positive) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addConditionArguments
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> argumentBuilder, boolean positive) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addConditionLogic
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, ExecuteCommand.Condition condition) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addConditionLogic
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> root, com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, boolean positive, ExecuteCommand.Condition condition) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> DataCommand.addModifyArgument
(BiConsumer<com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?>, DataCommand.ModifyArgumentCreator> subArgumentAdder) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addStoreArguments
(com.mojang.brigadier.tree.LiteralCommandNode<ServerCommandSource> node, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> builder, boolean requestResult) private static com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> ExecuteCommand.addStoreArguments
(com.mojang.brigadier.tree.LiteralCommandNode<ServerCommandSource> node, com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> builder, boolean requestResult) com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,
?> LootCommand.SourceConstructor.construct
(com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource, ?> builder, LootCommand.Target target) private static int
GameModeCommand.execute
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode) private static int
LootCommand.executeFish
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, BlockPos pos, ItemStack stack, LootCommand.Target constructor) private static int
LootCommand.executeKill
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Entity entity, LootCommand.Target constructor) private static int
LootCommand.executeLoot
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootCommand.Target constructor) private static int
LootCommand.executeMine
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStack stack, LootCommand.Target constructor) private static int
DataCommand.executeModify
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType, DataCommand.ModifyOperation modifier, List<NbtElement> elements) private static int
ExecuteCommand.executeNegativeBlockCondition
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) private static int
ExecuteCommand.executePositiveBlockCondition
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) (package private) static <T extends GameRules.Rule<T>>
intGameRuleCommand.executeSet
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, GameRules.Key<T> key) static CommandBossBar
BossBarCommand.getBossBar
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) private static Text
MeCommand.getEmoteText
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String arg) private static int
LootCommand.getFeedbackMessageSingle
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootContext lootContext, LootCommand.Target constructor) DataCommand.ObjectType.getObject
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) private static ResourcePackProfile
DatapackCommand.getPackContainer
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name, boolean enable) private static Collection<ServerCommandSource>
ExecuteCommand.getSourceOrEmptyForConditionFork
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean positive, boolean value) private void
CommandManager.makeTreeForSource
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> tree, com.mojang.brigadier.tree.CommandNode<CommandSource> result, ServerCommandSource source, Map<com.mojang.brigadier.tree.CommandNode<ServerCommandSource>, com.mojang.brigadier.tree.CommandNode<CommandSource>> resultNodes) private void
CommandManager.makeTreeForSource
(com.mojang.brigadier.tree.CommandNode<ServerCommandSource> tree, com.mojang.brigadier.tree.CommandNode<CommandSource> result, ServerCommandSource source, Map<com.mojang.brigadier.tree.CommandNode<ServerCommandSource>, com.mojang.brigadier.tree.CommandNode<CommandSource>> resultNodes) ServerCommandSource.mergeConsumers
(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> merger) ServerCommandSource.mergeConsumers
(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> merger) int
DataCommand.ModifyOperation.modify
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, NbtCompound sourceNbt, NbtPathArgumentType.NbtPath path, List<NbtElement> elements) void
ServerCommandSource.onCommandComplete
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean success, int result) static void
AdvancementCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
AttributeCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
BossBarCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ClearCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
CloneCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
DataCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
DatapackCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
DebugCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
DebugMobSpawningCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
DebugPathCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
DefaultGameModeCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
DifficultyCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
EffectCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
EnchantCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ExecuteCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ExperienceCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
FillCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ForceLoadCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
FunctionCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
GameModeCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
GameRuleCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
GiveCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
HelpCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ItemCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
KickCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
KillCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ListCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
LocateBiomeCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
LocateCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
LootCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
MeCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
MessageCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ParticleCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
PlaySoundCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
PublishCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
RaidCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
RecipeCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ReloadCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SayCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ScheduleCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
ScoreboardCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SeedCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, boolean dedicated) static void
SetBlockCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SetWorldSpawnCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SpawnPointCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SpectateCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SpreadPlayersCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
StopSoundCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SummonCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
TagCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
TeamCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
TeamMsgCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
TeleportCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
TellRawCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
TestCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
TimeCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
TitleCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
TriggerCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
WeatherCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
WorldBorderCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) boolean
ExecuteCommand.Condition.test
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) int
ExecuteCommand.ExistsCondition.test
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context) private static OptionalInt
ExecuteCommand.testBlocksCondition
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked) private static boolean
ExecuteCommand.testScoreCondition
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BiPredicate<Integer, Integer> condition) private static boolean
ExecuteCommand.testScoreMatch
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, NumberRange.IntRange range) ServerCommandSource.withConsumer
(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer) ModifierConstructorDescriptionprotected
ServerCommandSource
(CommandOutput output, Vec3d pos, Vec2f rot, ServerWorld world, int level, String simpleName, Text name, MinecraftServer server, @Nullable Entity entity, boolean silent, com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, EntityAnchorArgumentType.EntityAnchor entityAnchor) -
Uses of ServerCommandSource in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionvoid
MinecraftDedicatedServer.enqueueCommand
(String command, ServerCommandSource commandSource) ModifierConstructorDescriptionPendingServerCommand
(String command, ServerCommandSource commandSource) -
Uses of ServerCommandSource in net.minecraft.server.dedicated.command
Modifier and TypeMethodDescriptionprivate static int
BanCommand.ban
(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets, @Nullable Text reason) private static int
BanIpCommand.banIp
(ServerCommandSource source, String targetIp, @Nullable Text reason) private static int
BanIpCommand.checkIp
(ServerCommandSource source, String target, @Nullable Text reason) private static int
DeOpCommand.deop
(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets) private static int
BanListCommand.execute
(ServerCommandSource source, Collection<? extends BanEntry<?>> targets) private static int
SetIdleTimeoutCommand.execute
(ServerCommandSource source, int minutes) private static int
WhitelistCommand.executeAdd
(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets) private static int
WhitelistCommand.executeList
(ServerCommandSource source) private static int
WhitelistCommand.executeOff
(ServerCommandSource source) private static int
WhitelistCommand.executeOn
(ServerCommandSource source) private static int
WhitelistCommand.executeReload
(ServerCommandSource source) private static int
WhitelistCommand.executeRemove
(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets) private static int
PerfCommand.executeStart
(ServerCommandSource source) private static int
PerfCommand.executeStop
(ServerCommandSource source) private static int
OpCommand.op
(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets) private static int
PardonCommand.pardon
(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets) private static int
PardonIpCommand.pardonIp
(ServerCommandSource source, String target) private static int
SaveAllCommand.saveAll
(ServerCommandSource source, boolean flush) private static void
PerfCommand.saveReport
(ServerCommandSource source, Path tempProfilingFile, MinecraftServer server) private static void
PerfCommand.sendProfilingStoppedMessage
(ServerCommandSource source, ProfileResult result) Modifier and TypeMethodDescriptionstatic void
BanCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
BanIpCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
BanListCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
DeOpCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
OpCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
PardonCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
PardonIpCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
PerfCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SaveAllCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SaveOffCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SaveOnCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
SetIdleTimeoutCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
StopCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static void
WhitelistCommand.register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
Uses of ServerCommandSource in net.minecraft.server.function
Modifier and TypeFieldDescriptionprivate final ServerCommandSource
CommandFunctionManager.Entry.source
Modifier and TypeFieldDescriptionprivate final com.mojang.brigadier.CommandDispatcher<ServerCommandSource>
FunctionLoader.commandDispatcher
private final com.mojang.brigadier.ParseResults<ServerCommandSource>
CommandFunction.CommandElement.parsed
Modifier and TypeMethodDescriptionCommandFunctionManager.getScheduledCommandSource()
Returns the command source to execute scheduled functions.Modifier and TypeMethodDescriptioncom.mojang.brigadier.CommandDispatcher<ServerCommandSource>
CommandFunctionManager.getDispatcher()
Modifier and TypeMethodDescriptionstatic CommandFunction
CommandFunction.create
(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source, List<String> lines) Parses a function in the context ofsource
.private int
CommandFunction.CommandElement.execute
(CommandFunctionManager manager, ServerCommandSource source) void
CommandFunction.CommandElement.execute
(CommandFunctionManager manager, ServerCommandSource source, Deque<CommandFunctionManager.Entry> entries, int maxChainLength, int depth, CommandFunctionManager.Tracer tracer) void
CommandFunction.Element.execute
(CommandFunctionManager manager, ServerCommandSource source, Deque<CommandFunctionManager.Entry> entries, int maxChainLength, int depth, CommandFunctionManager.Tracer tracer) void
CommandFunction.FunctionElement.execute
(CommandFunctionManager manager, ServerCommandSource source, Deque<CommandFunctionManager.Entry> entries, int maxChainLength, int depth, CommandFunctionManager.Tracer tracer) int
CommandFunctionManager.execute
(CommandFunction function, ServerCommandSource source) Executes a function.int
CommandFunctionManager.execute
(CommandFunction function, ServerCommandSource source, @Nullable CommandFunctionManager.Tracer tracer) Executes a function.(package private) void
CommandFunctionManager.Execution.recursiveRun
(CommandFunction function, ServerCommandSource source) Handles a recursive case inCommandFunctionManager.execute(CommandFunction, ServerCommandSource, CommandFunctionManager.Tracer)
.(package private) int
CommandFunctionManager.Execution.run
(CommandFunction function, ServerCommandSource source) Modifier and TypeMethodDescriptionstatic CommandFunction
CommandFunction.create
(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source, List<String> lines) Parses a function in the context ofsource
.ModifierConstructorDescriptionEntry
(ServerCommandSource source, int depth, CommandFunction.Element element) ModifierConstructorDescriptionCommandElement
(com.mojang.brigadier.ParseResults<ServerCommandSource> parsed) FunctionLoader
(int level, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher) -
Uses of ServerCommandSource in net.minecraft.server.rcon
-
Uses of ServerCommandSource in net.minecraft.text
Modifier and TypeMethodDescriptionprivate String
ScoreText.getPlayerName
(ServerCommandSource source) private String
ScoreText.getScore
(String playerName, ServerCommandSource source) NbtText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) ParsableText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) ScoreText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) SelectorText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) static Optional<MutableText>
Texts.parse
(@Nullable ServerCommandSource source, Optional<Text> text, @Nullable Entity sender, int depth) static MutableText
TranslatableText.parse
(@Nullable ServerCommandSource source, @Nullable Entity sender, int depth) private static Style
Texts.parseStyle
(@Nullable ServerCommandSource source, Style style, @Nullable Entity sender, int depth) protected Stream<NbtCompound>
NbtText.BlockNbtText.toNbt
(ServerCommandSource source) protected Stream<NbtCompound>
NbtText.EntityNbtText.toNbt
(ServerCommandSource source) protected Stream<NbtCompound>
NbtText.StorageNbtText.toNbt
(ServerCommandSource source) protected abstract Stream<NbtCompound>
NbtText.toNbt
(ServerCommandSource source) -
Uses of ServerCommandSource in net.minecraft.world
Modifier and TypeMethodDescriptioncom.mojang.brigadier.builder.RequiredArgumentBuilder<ServerCommandSource,
?> Modifier and TypeMethodDescriptionvoid
GameRules.Rule.set
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) protected void
GameRules.BooleanRule.setFromArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) protected void
GameRules.IntRule.setFromArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) protected abstract void
GameRules.Rule.setFromArgument
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)