类的使用
net.minecraft.server.command.ServerCommandSource
-
-
net.minecraft.block.entity中ServerCommandSource的使用
返回ServerCommandSource的net.minecraft.block.entity中的方法 修饰符和类型 方法 说明 private ServerCommandSourceLecternBlockEntity. getCommandSource(@Nullable PlayerEntity player)ServerCommandSourceSignBlockEntity. getCommandSource(@Nullable ServerPlayerEntity player) -
net.minecraft.command中ServerCommandSource的使用
类型参数类型为ServerCommandSource的net.minecraft.command中的字段 修饰符和类型 字段 说明 private static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>StorageDataObject. SUGGESTION_PROVIDER参数类型为ServerCommandSource的net.minecraft.command中的方法 修饰符和类型 方法 说明 private voidEntitySelector. checkSourcePermission(ServerCommandSource serverCommandSource)List<? extends Entity>EntitySelector. getEntities(ServerCommandSource serverCommandSource)EntityEntitySelector. getEntity(ServerCommandSource serverCommandSource)ServerPlayerEntityEntitySelector. getPlayer(ServerCommandSource serverCommandSource)List<ServerPlayerEntity>EntitySelector. getPlayers(ServerCommandSource serverCommandSource)类型变量类型为ServerCommandSource的net.minecraft.command中的方法参数 修饰符和类型 方法 说明 private static DataCommandStorageStorageDataObject. of(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext) -
net.minecraft.command.argument中ServerCommandSource的使用
类型参数类型为ServerCommandSource的net.minecraft.command.argument中的字段 修饰符和类型 字段 说明 static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>ScoreHolderArgumentType. SUGGESTION_PROVIDER参数类型为ServerCommandSource的net.minecraft.command.argument中的方法 修饰符和类型 方法 说明 TextMessageArgumentType.MessageFormat. format(ServerCommandSource serverCommandSource, boolean bool)@Nullable TextMessageArgumentType.MessageSelector. format(ServerCommandSource serverCommandSource)floatAngleArgumentType.Angle. getAngle(ServerCommandSource source)Collection<com.mojang.authlib.GameProfile>GameProfileArgumentType.GameProfileArgument. getNames(ServerCommandSource serverCommandSource)Collection<com.mojang.authlib.GameProfile>GameProfileArgumentType.SelectorBacked. getNames(ServerCommandSource serverCommandSource)Collection<String>ScoreHolderArgumentType.ScoreHolder. getNames(ServerCommandSource source, Supplier<Collection<String>> supplier)Collection<String>ScoreHolderArgumentType.SelectorScoreHolder. getNames(ServerCommandSource source, Supplier<Collection<String>> supplier)Vec3dEntityAnchorArgumentType.EntityAnchor. positionAt(ServerCommandSource serverCommandSource)default BlockPosPosArgument. toAbsoluteBlockPos(ServerCommandSource source)Vec3dDefaultPosArgument. toAbsolutePos(ServerCommandSource source)Vec3dLookingPosArgument. toAbsolutePos(ServerCommandSource source)Vec3dPosArgument. toAbsolutePos(ServerCommandSource source)Vec2fDefaultPosArgument. toAbsoluteRotation(ServerCommandSource source)Vec2fLookingPosArgument. toAbsoluteRotation(ServerCommandSource source)Vec2fPosArgument. toAbsoluteRotation(ServerCommandSource source)类型变量类型为ServerCommandSource的net.minecraft.command.argument中的方法参数 修饰符和类型 方法 说明 Predicate<ItemStack>ItemPredicateArgumentType.ItemPredicateArgument. create(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)static AdvancementIdentifierArgumentType. getAdvancementArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)static floatAngleArgumentType. getAngle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static EntityAttributeIdentifierArgumentType. getAttributeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)static BlockPosBlockPosArgumentType. 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 BlockStateArgumentBlockStateArgumentType. getBlockState(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static FormattingColorArgumentType. getColor(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static ColumnPosColumnPosArgumentType. getColumnPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static ScoreboardCriterionScoreboardCriterionArgumentType. getCriterion(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)static ServerWorldDimensionArgumentType. getDimensionArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static EnchantmentEnchantmentArgumentType. 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 EntityEntityArgumentType. getEntity(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static EntityAnchorArgumentType.EntityAnchorEntityAnchorArgumentType. getEntityAnchor(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)static IdentifierEntitySummonArgumentType. getEntitySummon(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)private static CommandFunctionCommandFunctionArgumentType. getFunction(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id)static TestFunctionTestFunctionArgumentType. 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)Collection<CommandFunction>CommandFunctionArgumentType.FunctionArgument. getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext)static Collection<CommandFunction>CommandFunctionArgumentType. getFunctions(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)private static Tag<CommandFunction>CommandFunctionArgumentType. getFunctionTag(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier id)static IdentifierIdentifierArgumentType. getIdentifier(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static LootFunctionIdentifierArgumentType. getItemModifierArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)static Predicate<ItemStack>ItemPredicateArgumentType. getItemPredicate(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static intItemSlotArgumentType. getItemSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static BlockPosBlockPosArgumentType. getLoadedBlockPos(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static TextMessageArgumentType. getMessage(com.mojang.brigadier.context.CommandContext<ServerCommandSource> command, String name)static NbtPathArgumentType.NbtPathNbtPathArgumentType. getNbtPath(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static ScoreboardObjectiveScoreboardObjectiveArgumentType. getObjective(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static OperationArgumentType.OperationOperationArgumentType. 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 ParticleEffectParticleEffectArgumentType. getParticle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static ServerPlayerEntityEntityArgumentType. 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 PosArgumentVec3ArgumentType. getPosArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)static LootConditionIdentifierArgumentType. 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.IntRangeNumberRangeArgumentType.IntRangeArgumentType. getRangeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)static Recipe<?>IdentifierArgumentType. getRecipeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)static PosArgumentRotationArgumentType. 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 intScoreboardSlotArgumentType. getScoreboardSlot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static StringScoreHolderArgumentType. 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 StatusEffectStatusEffectArgumentType. 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 TeamTeamArgumentType. getTeam(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static StringTestClassArgumentType. getTestClass(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static TextTextArgumentType. getTextArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static UUIDUuidArgumentType. getUuid(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static Vec2fVec2ArgumentType. getVec2(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static Vec3dVec3ArgumentType. getVec3(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static ScoreboardObjectiveScoreboardObjectiveArgumentType. getWritableObjective(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static NumberRange.FloatRangeNumberRangeArgumentType.FloatRangeArgumentType. method_35738(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string) -
net.minecraft.command.suggestion中ServerCommandSource的使用
类型参数类型为ServerCommandSource的net.minecraft.command.suggestion中的字段 修饰符和类型 字段 说明 static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>SuggestionProviders. ALL_BIOMESstatic com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>SuggestionProviders. ALL_RECIPESstatic com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>SuggestionProviders. AVAILABLE_SOUNDSstatic com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>SuggestionProviders. SUMMONABLE_ENTITIES -
net.minecraft.entity中ServerCommandSource的使用
返回ServerCommandSource的net.minecraft.entity中的方法 修饰符和类型 方法 说明 ServerCommandSourceEntity. getCommandSource()Creates a command source which represents this entity. -
net.minecraft.entity.vehicle中ServerCommandSource的使用
返回ServerCommandSource的net.minecraft.entity.vehicle中的方法 修饰符和类型 方法 说明 ServerCommandSourceCommandBlockMinecartEntity.CommandExecutor. getSource() -
net.minecraft.item中ServerCommandSource的使用
参数类型为ServerCommandSource的net.minecraft.item中的方法 修饰符和类型 方法 说明 private static StringWrittenBookItem. method_33826(@Nullable ServerCommandSource serverCommandSource, @Nullable PlayerEntity playerEntity, String string)static booleanWrittenBookItem. resolve(ItemStack book, @Nullable ServerCommandSource commandSource, @Nullable PlayerEntity player) -
net.minecraft.server中ServerCommandSource的使用
返回ServerCommandSource的net.minecraft.server中的方法 修饰符和类型 方法 说明 ServerCommandSourceMinecraftServer. getCommandSource()Creates a command source which represents this Minecraft server instance.参数类型为ServerCommandSource的net.minecraft.server中的方法 修饰符和类型 方法 说明 voidMinecraftServer. kickNonWhitelistedPlayers(ServerCommandSource source) -
net.minecraft.server.command中ServerCommandSource的使用
类型参数类型为ServerCommandSource的net.minecraft.server.command中的字段 修饰符和类型 字段 说明 private static BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>>ExecuteCommand. BINARY_RESULT_CONSUMERprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>DatapackCommand. DISABLED_CONTAINERS_SUGGESTION_PROVIDERprivate com.mojang.brigadier.CommandDispatcher<ServerCommandSource>CommandManager. dispatcherprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>DatapackCommand. ENABLED_CONTAINERS_SUGGESTION_PROVIDERprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>ExecuteCommand. LOOT_CONDITIONSprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>ItemCommand. MODIFIER_SUGGESTION_PROVIDERprivate com.mojang.brigadier.ResultConsumer<ServerCommandSource>ServerCommandSource. resultConsumerprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>AdvancementCommand. SUGGESTION_PROVIDERprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>AttributeCommand. SUGGESTION_PROVIDERstatic com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>BossBarCommand. SUGGESTION_PROVIDERstatic com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>FunctionCommand. SUGGESTION_PROVIDERstatic com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>LootCommand. SUGGESTION_PROVIDERprivate static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>ScheduleCommand. SUGGESTION_PROVIDER类型参数类型为ServerCommandSource的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static <T extends com.mojang.brigadier.builder.ArgumentBuilder<ServerCommandSource,T>>
TLootCommand. addTargetArguments(T rootArgument, LootCommand.SourceConstructor sourceConstructor)返回变量类型为ServerCommandSource的类型的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 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. 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>CommandManager. argument(String name, com.mojang.brigadier.arguments.ArgumentType<T> type)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>CommandManager. literal(String literal)private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>PlaySoundCommand. makeArgumentsForCategory(SoundCategory category)private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource>ScoreboardCommand. makeRenderTypeArguments()参数类型为ServerCommandSource的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static intBossBarCommand. addBossBar(ServerCommandSource source, Identifier name, Text displayName)private static intScheduleCommand. clearEvent(ServerCommandSource source, String eventName)private static intDebugCommand. createDebugReport(ServerCommandSource source)private static intClearCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount)private static intCloneCommand. execute(ServerCommandSource source, BlockPos begin, BlockPos end, BlockPos destination, Predicate<CachedBlockPosition> filter, CloneCommand.Mode mode)intCommandManager. execute(ServerCommandSource commandSource, String command)private static intDebugMobSpawningCommand. execute(ServerCommandSource source, SpawnGroup group, BlockPos pos)private static intDebugPathCommand. execute(ServerCommandSource source, BlockPos pos)private static intDefaultGameModeCommand. execute(ServerCommandSource source, GameMode defaultGameMode)static intDifficultyCommand. execute(ServerCommandSource source, Difficulty difficulty)private static intEnchantCommand. execute(ServerCommandSource source, Collection<? extends Entity> targets, Enchantment enchantment, int level)private static intFillCommand. execute(ServerCommandSource source, BlockBox range, BlockStateArgument block, FillCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> filter)private static intFunctionCommand. execute(ServerCommandSource source, Collection<CommandFunction> functions)private static intGiveCommand. execute(ServerCommandSource source, ItemStackArgument item, Collection<ServerPlayerEntity> targets, int count)private static intKickCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text reason)private static intKillCommand. execute(ServerCommandSource source, Collection<? extends Entity> targets)private static intListCommand. execute(ServerCommandSource source, Function<ServerPlayerEntity,Text> nameProvider)private static intLocateBiomeCommand. execute(ServerCommandSource source, Identifier id)private static intLocateCommand. execute(ServerCommandSource source, StructureFeature<?> structure)private static intMessageCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text message)private static intParticleCommand. execute(ServerCommandSource source, ParticleEffect parameters, Vec3d pos, Vec3d delta, float speed, int count, boolean force, Collection<ServerPlayerEntity> viewers)private static intPlaySoundCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Identifier sound, SoundCategory category, Vec3d pos, float volume, float pitch, float minVolume)private static intPublishCommand. execute(ServerCommandSource source, int port)private static intScheduleCommand. execute(ServerCommandSource source, com.mojang.datafixers.util.Pair<Identifier,com.mojang.datafixers.util.Either<CommandFunction,Tag<CommandFunction>>> function, int time, boolean replace)private static intSetBlockCommand. execute(ServerCommandSource source, BlockPos pos, BlockStateArgument block, SetBlockCommand.Mode mode, @Nullable Predicate<CachedBlockPosition> condition)private static intSetWorldSpawnCommand. execute(ServerCommandSource source, BlockPos pos, float angle)private static intSpawnPointCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, BlockPos pos, float angle)private static intSpectateCommand. execute(ServerCommandSource source, @Nullable Entity entity, ServerPlayerEntity player)private static intSpreadPlayersCommand. execute(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int maxY, boolean respectTeams, Collection<? extends Entity> players)private static intStopSoundCommand. execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, @Nullable SoundCategory category, @Nullable Identifier sound)private static intSummonCommand. execute(ServerCommandSource source, Identifier entity, Vec3d pos, CompoundTag nbt, boolean initialize)private static intTeamMsgCommand. execute(ServerCommandSource source, Text message)private static intTeleportCommand. execute(ServerCommandSource source, Collection<? extends Entity> targets, Entity destination)private static intTeleportCommand. execute(ServerCommandSource source, Collection<? extends Entity> targets, ServerWorld world, PosArgument location, @Nullable PosArgument rotation, @Nullable TeleportCommand.LookTarget facingLocation)private static intExperienceCommand. executeAdd(ServerCommandSource source, Collection<? extends ServerPlayerEntity> targets, int amount, ExperienceCommand.Component component)private static intScoreboardCommand. executeAdd(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)private static intTagCommand. executeAdd(ServerCommandSource source, Collection<? extends Entity> targets, String tag)private static intTeamCommand. executeAdd(ServerCommandSource source, String team)private static intTeamCommand. executeAdd(ServerCommandSource source, String team, Text displayName)static intTimeCommand. executeAdd(ServerCommandSource source, int time)private static intTriggerCommand. executeAdd(ServerCommandSource source, ScoreboardPlayerScore score, int value)private static intScoreboardCommand. executeAddObjective(ServerCommandSource source, String objective, ScoreboardCriterion criteria, Text displayName)private static intAdvancementCommand. executeAdvancement(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Collection<Advancement> selection)private static intAttributeCommand. executeBaseValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier)private static intAttributeCommand. executeBaseValueSet(ServerCommandSource source, Entity target, EntityAttribute attribute, double value)private static intLootCommand. executeBlock(ServerCommandSource source, BlockPos targetPos, int slot, int stackCount, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)private static intItemCommand. executeBlockCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot)private static intItemCommand. executeBlockCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, BlockPos pos, int slot, LootFunction modifier)private static intItemCommand. executeBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot)private static intItemCommand. executeBlockCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, BlockPos pos, int slot, LootFunction modifier)private static intItemCommand. executeBlockModify(ServerCommandSource source, BlockPos pos, int slot, LootFunction modifier)private static intItemCommand. executeBlockReplace(ServerCommandSource source, BlockPos pos, int slot, ItemStack stack)private static intWorldBorderCommand. executeBuffer(ServerCommandSource source, float distance)private static intWorldBorderCommand. executeCenter(ServerCommandSource source, Vec2f pos)private static intForceLoadCommand. executeChange(ServerCommandSource source, ColumnPos from, ColumnPos to, boolean forceLoaded)private static intRaidCommand. executeCheck(ServerCommandSource source)private static intEffectCommand. executeClear(ServerCommandSource source, Collection<? extends Entity> targets)private static intEffectCommand. executeClear(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect)private static intTitleCommand. executeClear(ServerCommandSource source, Collection<ServerPlayerEntity> targets)private static intWeatherCommand. executeClear(ServerCommandSource source, int duration)private static intTestCommand. executeClearAll(ServerCommandSource source, int radius)private static intScoreboardCommand. executeClearDisplay(ServerCommandSource source, int slot)private static intTestCommand. executeCreate(ServerCommandSource source, String structure, int x, int y, int z)private static intAdvancementCommand. executeCriterion(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Advancement advancement, String criterion)private static intWorldBorderCommand. executeDamage(ServerCommandSource source, float damagePerBlock)private static intDatapackCommand. executeDisable(ServerCommandSource source, ResourcePackProfile container)private static intTeamCommand. executeEmpty(ServerCommandSource source, Team team)private static intDatapackCommand. executeEnable(ServerCommandSource source, ResourcePackProfile container, DatapackCommand.PackAdder packAdder)private static intScoreboardCommand. executeEnable(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)private static intItemCommand. executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot)private static intItemCommand. executeEntityCopyBlock(ServerCommandSource source, BlockPos sourcePos, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier)private static intItemCommand. executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot)private static intItemCommand. executeEntityCopyEntity(ServerCommandSource source, Entity sourceEntity, int sourceSlot, Collection<? extends Entity> targets, int slot, LootFunction modifier)private static intItemCommand. executeEntityModify(ServerCommandSource source, Collection<? extends Entity> targets, int slot, LootFunction modifier)private static intItemCommand. executeEntityReplace(ServerCommandSource source, Collection<? extends Entity> targets, int slot, ItemStack stack)private static intTestCommand. executeExport(ServerCommandSource source)private static intTestCommand. executeExport(ServerCommandSource source, String structure)private static intDataCommand. executeGet(ServerCommandSource source, DataCommandObject object)private static intDataCommand. executeGet(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path)private static intDataCommand. executeGet(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, double scale)private static intScoreboardCommand. executeGet(ServerCommandSource source, String target, ScoreboardObjective objective)private static intWorldBorderCommand. executeGet(ServerCommandSource source)private static intEffectCommand. executeGive(ServerCommandSource source, Collection<? extends Entity> targets, StatusEffect effect, @Nullable Integer seconds, int amplifier, boolean showParticles)private static intRecipeCommand. executeGive(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Collection<Recipe<?>> recipes)private static intRaidCommand. executeGlow(ServerCommandSource source)private static intTestCommand. executeImport(ServerCommandSource source, String structure)private static intLootCommand. executeInsert(ServerCommandSource source, BlockPos targetPos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)private static intTeamCommand. executeJoin(ServerCommandSource source, Team team, Collection<String> members)private static intTeamCommand. executeLeave(ServerCommandSource source, Collection<String> members)private static intDatapackCommand. executeList(ServerCommandSource source)private static intTagCommand. executeList(ServerCommandSource source, Collection<? extends Entity> targets)private static intDatapackCommand. executeListAvailable(ServerCommandSource source)private static intDatapackCommand. executeListEnabled(ServerCommandSource source)private static intTeamCommand. executeListMembers(ServerCommandSource source, Team team)private static intScoreboardCommand. executeListObjectives(ServerCommandSource source)private static intScoreboardCommand. executeListPlayers(ServerCommandSource source)private static intScoreboardCommand. executeListScores(ServerCommandSource source, String target)private static intTeamCommand. executeListTeams(ServerCommandSource source)private static intDataCommand. executeMerge(ServerCommandSource source, DataCommandObject object, CompoundTag nbt)private static intAttributeCommand. executeModifierAdd(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, String name, double value, EntityAttributeModifier.Operation operation)private static intAttributeCommand. executeModifierRemove(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid)private static intAttributeCommand. executeModifierValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, UUID uuid, double multiplier)private static intTeamCommand. executeModifyCollisionRule(ServerCommandSource source, Team team, AbstractTeam.CollisionRule collisionRule)private static intTeamCommand. executeModifyColor(ServerCommandSource source, Team team, Formatting color)private static intTeamCommand. executeModifyDeathMessageVisibility(ServerCommandSource source, Team team, AbstractTeam.VisibilityRule visibility)private static intTeamCommand. executeModifyDisplayName(ServerCommandSource source, Team team, Text displayName)private static intTeamCommand. executeModifyFriendlyFire(ServerCommandSource source, Team team, boolean allowed)private static intTeamCommand. executeModifyNametagVisibility(ServerCommandSource source, Team team, AbstractTeam.VisibilityRule visibility)private static intScoreboardCommand. executeModifyObjective(ServerCommandSource source, ScoreboardObjective objective, Text displayName)private static intTeamCommand. executeModifyPrefix(ServerCommandSource source, Team team, Text prefix)private static intScoreboardCommand. executeModifyRenderType(ServerCommandSource source, ScoreboardObjective objective, ScoreboardCriterion.RenderType type)private static intTeamCommand. executeModifySeeFriendlyInvisibles(ServerCommandSource source, Team team, boolean allowed)private static intTeamCommand. executeModifySuffix(ServerCommandSource source, Team team, Text suffix)private static intListCommand. executeNames(ServerCommandSource source)private static intScoreboardCommand. executeOperation(ServerCommandSource source, Collection<String> targets, ScoreboardObjective targetObjective, OperationArgumentType.Operation operation, Collection<String> sources, ScoreboardObjective sourceObjectives)private static intTestCommand. executePos(ServerCommandSource source, String variableName)private static intExperienceCommand. executeQuery(ServerCommandSource source, ServerPlayerEntity player, ExperienceCommand.Component component)private static intForceLoadCommand. executeQuery(ServerCommandSource source)private static intForceLoadCommand. executeQuery(ServerCommandSource source, ColumnPos pos)private static <T extends GameRules.Rule<T>>
intGameRuleCommand. executeQuery(ServerCommandSource source, GameRules.Key<T> key)private static intTimeCommand. executeQuery(ServerCommandSource source, int time)private static intWeatherCommand. executeRain(ServerCommandSource source, int duration)private static intDataCommand. executeRemove(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path)private static intScoreboardCommand. executeRemove(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)private static intTagCommand. executeRemove(ServerCommandSource source, Collection<? extends Entity> targets, String tag)private static intTeamCommand. executeRemove(ServerCommandSource source, Team team)private static intForceLoadCommand. executeRemoveAll(ServerCommandSource source)private static intScoreboardCommand. executeRemoveObjective(ServerCommandSource source, ScoreboardObjective objective)private static intTestCommand. executeRerunFailed(ServerCommandSource source, boolean requiredOnly, int rotationSteps, int sizeZ)private static intScoreboardCommand. executeReset(ServerCommandSource source, Collection<String> targets)private static intScoreboardCommand. executeReset(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)private static intTitleCommand. executeReset(ServerCommandSource source, Collection<ServerPlayerEntity> targets)private static intTestCommand. executeRun(ServerCommandSource source, TestFunction testFunction, int rotationSteps)private static intTestCommand. executeRunAll(ServerCommandSource source, int rotationSteps, int sizeZ)private static intTestCommand. executeRunAll(ServerCommandSource source, String testClass, int rotationSteps, int sizeZ)private static intTestCommand. executeRunThese(ServerCommandSource source)private static intTestCommand. executeRunThis(ServerCommandSource source)private static intExperienceCommand. executeSet(ServerCommandSource source, Collection<? extends ServerPlayerEntity> targets, int amount, ExperienceCommand.Component component)private static intScoreboardCommand. executeSet(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)static intTimeCommand. executeSet(ServerCommandSource source, int time)private static intTriggerCommand. executeSet(ServerCommandSource source, ScoreboardPlayerScore score, int value)private static intWorldBorderCommand. executeSet(ServerCommandSource source, double distance, long time)private static intScoreboardCommand. executeSetDisplay(ServerCommandSource source, int slot, ScoreboardObjective objective)private static intRaidCommand. executeSetOmen(ServerCommandSource source, int level)private static intTriggerCommand. executeSimple(ServerCommandSource source, ScoreboardPlayerScore score)private static intRaidCommand. executeSound(ServerCommandSource source, Text type)private static intLootCommand. executeSpawn(ServerCommandSource source, Vec3d pos, List<ItemStack> stacks, LootCommand.FeedbackMessage messageSender)private static intRaidCommand. executeSpawnLeader(ServerCommandSource source)private static intDebugCommand. executeStart(ServerCommandSource source)private static intRaidCommand. executeStart(ServerCommandSource source, int level)private static intDebugCommand. executeStop(ServerCommandSource source)private static intRaidCommand. executeStop(ServerCommandSource source)private static ServerCommandSourceExecuteCommand. executeStoreBossbar(ServerCommandSource source, CommandBossBar bossBar, boolean storeInValue, boolean requestResult)private static ServerCommandSourceExecuteCommand. executeStoreData(ServerCommandSource source, DataCommandObject object, NbtPathArgumentType.NbtPath path, IntFunction<Tag> nbtSetter, boolean requestResult)private static ServerCommandSourceExecuteCommand. executeStoreScore(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, boolean requestResult)private static intRecipeCommand. executeTake(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Collection<Recipe<?>> recipes)private static intWeatherCommand. executeThunder(ServerCommandSource source, int duration)private static intTitleCommand. executeTimes(ServerCommandSource source, Collection<ServerPlayerEntity> targets, int fadeIn, int stay, int fadeOut)private static intTitleCommand. executeTitle(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Text title, String titleType, Function<Text,Packet<?>> constructor)private static intListCommand. executeUuids(ServerCommandSource source)private static intAttributeCommand. executeValueGet(ServerCommandSource source, Entity target, EntityAttribute attribute, double multiplier)private static intWorldBorderCommand. executeWarningDistance(ServerCommandSource source, int distance)private static intWorldBorderCommand. executeWarningTime(ServerCommandSource source, int time)private static InventoryLootCommand. getBlockInventory(ServerCommandSource source, BlockPos pos)private static ItemStackLootCommand. getHeldItem(ServerCommandSource source, EquipmentSlot slot)private static InventoryItemCommand. getInventoryAtPos(ServerCommandSource source, BlockPos pos, com.mojang.brigadier.exceptions.Dynamic3CommandExceptionType exception)private static intBossBarCommand. getMaxValue(ServerCommandSource source, CommandBossBar bossBar)private static intBossBarCommand. getPlayers(ServerCommandSource source, CommandBossBar bossBar)private static ItemStackItemCommand. getStackInSlotFromInventoryAt(ServerCommandSource source, BlockPos pos, int slotId)private static ItemStackItemCommand. getStackWithModifier(ServerCommandSource source, LootFunction modifier, ItemStack stack)private static intBossBarCommand. getValue(ServerCommandSource source, CommandBossBar bossBar)private static intBossBarCommand. isVisible(ServerCommandSource source, CommandBossBar bossBar)private static intBossBarCommand. listBossBars(ServerCommandSource source)voidTeleportCommand.LookTarget. look(ServerCommandSource source, Entity entity)private voidCommandManager. 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 intBossBarCommand. removeBossBar(ServerCommandSource source, CommandBossBar bossBar)private static voidTestCommand. run(ServerCommandSource source, Collection<TestFunction> testFunctions, int rotationSteps, int int2)static intLocateCommand. sendCoordinates(ServerCommandSource source, String structure, BlockPos sourcePos, BlockPos structurePos, String successMessage)private static voidLootCommand. sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks)private static voidLootCommand. sendDroppedFeedback(ServerCommandSource source, List<ItemStack> stacks, Identifier lootTable)private static voidTestCommand. sendMessage(ServerCommandSource source, String message)private static intBossBarCommand. setColor(ServerCommandSource source, CommandBossBar bossBar, BossBar.Color color)private static voidGameModeCommand. setGameMode(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode)private static intBossBarCommand. setMaxValue(ServerCommandSource source, CommandBossBar bossBar, int value)private static intBossBarCommand. setName(ServerCommandSource source, CommandBossBar bossBar, Text name)private static intBossBarCommand. setPlayers(ServerCommandSource source, CommandBossBar bossBar, Collection<ServerPlayerEntity> players)private static intBossBarCommand. setStyle(ServerCommandSource source, CommandBossBar bossBar, BossBar.Style style)private static intBossBarCommand. setValue(ServerCommandSource source, CommandBossBar bossBar, int value)private static intBossBarCommand. 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 voidTeleportCommand. 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 booleanExecuteCommand. testLootCondition(ServerCommandSource source, LootCondition condition)static voidReloadCommand. tryReloadDataPacks(Collection<String> dataPacks, ServerCommandSource source)类型变量类型为ServerCommandSource的net.minecraft.server.command中的方法参数 修饰符和类型 方法 说明 intLootCommand.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 intGameModeCommand. execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode)private static intLootCommand. executeFish(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, BlockPos pos, ItemStack stack, LootCommand.Target constructor)private static intLootCommand. executeKill(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Entity entity, LootCommand.Target constructor)private static intLootCommand. executeLoot(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootCommand.Target constructor)private static intLootCommand. executeMine(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BlockPos pos, ItemStack stack, LootCommand.Target constructor)private static intDataCommand. executeModify(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, DataCommand.ObjectType objectType, DataCommand.ModifyOperation modifier, List<Tag> elements)private static intExecuteCommand. executeNegativeBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked)private static intExecuteCommand. executePositiveBlockCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked)private static <T extends GameRules.Rule<T>>
intGameRuleCommand. executeSet(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, GameRules.Key<T> key)static CommandBossBarBossBarCommand. getBossBar(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context)private static TextMeCommand. getEmoteText(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String arg)private static intLootCommand. getFeedbackMessageSingle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Identifier lootTable, LootContext lootContext, LootCommand.Target constructor)DataCommandObjectDataCommand.ObjectType. getObject(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context)private static ResourcePackProfileDatapackCommand. 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 voidCommandManager. 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 voidCommandManager. 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)ServerCommandSourceServerCommandSource. mergeConsumers(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> binaryOperator)ServerCommandSourceServerCommandSource. mergeConsumers(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer, BinaryOperator<com.mojang.brigadier.ResultConsumer<ServerCommandSource>> binaryOperator)intDataCommand.ModifyOperation. modify(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, CompoundTag sourceNbt, NbtPathArgumentType.NbtPath path, List<Tag> elements)voidServerCommandSource. onCommandComplete(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean success, int result)static voidAdvancementCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidAttributeCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidBossBarCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidClearCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidCloneCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidDataCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidDatapackCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidDebugCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidDebugMobSpawningCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidDebugPathCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidDefaultGameModeCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidDifficultyCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidEffectCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidEnchantCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidExecuteCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidExperienceCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidFillCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidForceLoadCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidFunctionCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidGameModeCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidGameRuleCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidGiveCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidHelpCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidItemCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidKickCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidKillCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidListCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidLocateBiomeCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidLocateCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidLootCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidMeCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidMessageCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidParticleCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidPlaySoundCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidPublishCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidRaidCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidRecipeCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidReloadCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSayCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidScheduleCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidScoreboardCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSeedCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, boolean dedicated)static voidSetBlockCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSetWorldSpawnCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSpawnPointCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSpectateCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSpreadPlayersCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidStopSoundCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSummonCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidTagCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidTeamCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidTeamMsgCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidTeleportCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidTellRawCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidTestCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidTimeCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidTitleCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidTriggerCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidWeatherCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidWorldBorderCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)booleanExecuteCommand.Condition. test(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context)intExecuteCommand.ExistsCondition. test(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context)private static OptionalIntExecuteCommand. testBlocksCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, boolean masked)private static booleanExecuteCommand. testScoreCondition(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, BiPredicate<Integer,Integer> condition)private static booleanExecuteCommand. testScoreMatch(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, NumberRange.IntRange range)ServerCommandSourceServerCommandSource. withConsumer(com.mojang.brigadier.ResultConsumer<ServerCommandSource> consumer)类型变量类型为ServerCommandSource的net.minecraft.server.command中的构造器参数 构造器 说明 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) -
net.minecraft.server.dedicated中ServerCommandSource的使用
声明为ServerCommandSource的net.minecraft.server.dedicated中的字段 修饰符和类型 字段 说明 ServerCommandSourcePendingServerCommand. source参数类型为ServerCommandSource的net.minecraft.server.dedicated中的方法 修饰符和类型 方法 说明 voidMinecraftDedicatedServer. enqueueCommand(String command, ServerCommandSource commandSource)参数类型为ServerCommandSource的net.minecraft.server.dedicated中的构造器 构造器 说明 PendingServerCommand(String command, ServerCommandSource commandSource) -
net.minecraft.server.dedicated.command中ServerCommandSource的使用
参数类型为ServerCommandSource的net.minecraft.server.dedicated.command中的方法 修饰符和类型 方法 说明 private static intBanCommand. ban(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets, @Nullable Text reason)private static intBanIpCommand. banIp(ServerCommandSource source, String targetIp, @Nullable Text reason)private static intBanIpCommand. checkIp(ServerCommandSource source, String target, @Nullable Text reason)private static intDeOpCommand. deop(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)private static intBanListCommand. execute(ServerCommandSource source, Collection<? extends BanEntry<?>> targets)private static intSetIdleTimeoutCommand. execute(ServerCommandSource source, int minutes)private static intWhitelistCommand. executeAdd(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)private static intWhitelistCommand. executeList(ServerCommandSource source)private static intWhitelistCommand. executeOff(ServerCommandSource source)private static intWhitelistCommand. executeOn(ServerCommandSource source)private static intWhitelistCommand. executeReload(ServerCommandSource source)private static intWhitelistCommand. executeRemove(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)private static intOpCommand. op(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)private static intPardonCommand. pardon(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)private static intPardonIpCommand. pardonIp(ServerCommandSource source, String target)private static intSaveAllCommand. saveAll(ServerCommandSource source, boolean flush)类型变量类型为ServerCommandSource的net.minecraft.server.dedicated.command中的方法参数 修饰符和类型 方法 说明 static voidBanCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidBanIpCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidBanListCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidDeOpCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidOpCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidPardonCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidPardonIpCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSaveAllCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSaveOffCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSaveOnCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidSetIdleTimeoutCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidStopCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)static voidWhitelistCommand. register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
net.minecraft.server.function中ServerCommandSource的使用
声明为ServerCommandSource的net.minecraft.server.function中的字段 修饰符和类型 字段 说明 private ServerCommandSourceCommandFunctionManager.Entry. source类型参数类型为ServerCommandSource的net.minecraft.server.function中的字段 修饰符和类型 字段 说明 private com.mojang.brigadier.CommandDispatcher<ServerCommandSource>FunctionLoader. commandDispatcherprivate com.mojang.brigadier.ParseResults<ServerCommandSource>CommandFunction.CommandElement. parsed返回ServerCommandSource的net.minecraft.server.function中的方法 修饰符和类型 方法 说明 ServerCommandSourceCommandFunctionManager. getTaggedFunctionSource()返回变量类型为ServerCommandSource的类型的net.minecraft.server.function中的方法 修饰符和类型 方法 说明 com.mojang.brigadier.CommandDispatcher<ServerCommandSource>CommandFunctionManager. getDispatcher()参数类型为ServerCommandSource的net.minecraft.server.function中的方法 修饰符和类型 方法 说明 static CommandFunctionCommandFunction. create(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source, List<String> lines)Parses a function in the context ofsource.voidCommandFunction.CommandElement. execute(CommandFunctionManager manager, ServerCommandSource source, Deque<CommandFunctionManager.Entry> entries, int maxChainLength)voidCommandFunction.Element. execute(CommandFunctionManager manager, ServerCommandSource source, Deque<CommandFunctionManager.Entry> entries, int maxChainLength)voidCommandFunction.FunctionElement. execute(CommandFunctionManager manager, ServerCommandSource source, Deque<CommandFunctionManager.Entry> entries, int maxChainLength)intCommandFunctionManager. execute(CommandFunction function, ServerCommandSource source)类型变量类型为ServerCommandSource的net.minecraft.server.function中的方法参数 修饰符和类型 方法 说明 static CommandFunctionCommandFunction. create(Identifier id, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, ServerCommandSource source, List<String> lines)Parses a function in the context ofsource.参数类型为ServerCommandSource的net.minecraft.server.function中的构造器 构造器 说明 Entry(CommandFunctionManager manager, ServerCommandSource source, CommandFunction.Element element)类型变量类型为ServerCommandSource的net.minecraft.server.function中的构造器参数 构造器 说明 CommandElement(com.mojang.brigadier.ParseResults<ServerCommandSource> parsed)FunctionLoader(int level, com.mojang.brigadier.CommandDispatcher<ServerCommandSource> commandDispatcher) -
net.minecraft.server.rcon中ServerCommandSource的使用
返回ServerCommandSource的net.minecraft.server.rcon中的方法 修饰符和类型 方法 说明 ServerCommandSourceRconCommandOutput. createRconCommandSource() -
net.minecraft.text中ServerCommandSource的使用
-
net.minecraft.world中ServerCommandSource的使用
返回ServerCommandSource的net.minecraft.world中的方法 修饰符和类型 方法 说明 abstract ServerCommandSourceCommandBlockExecutor. getSource()返回变量类型为ServerCommandSource的类型的net.minecraft.world中的方法 修饰符和类型 方法 说明 com.mojang.brigadier.builder.RequiredArgumentBuilder<ServerCommandSource,?>GameRules.Type. argument(String name)类型变量类型为ServerCommandSource的net.minecraft.world中的方法参数 修饰符和类型 方法 说明 voidGameRules.Rule. set(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)protected voidGameRules.BooleanRule. setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)protected voidGameRules.IntRule. setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)protected abstract voidGameRules.Rule. setFromArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
-