Package net.minecraft.server.command
Class AdvancementCommand
java.lang.Object
net.minecraft.server.command.AdvancementCommand
public class AdvancementCommand extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classAdvancementCommand.Operation(package private) static classAdvancementCommand.Selection -
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource>SUGGESTION_PROVIDER -
Constructor Summary
Constructors Constructor Description AdvancementCommand() -
Method Summary
Modifier and Type Method Description private static voidaddChildrenRecursivelyToList(Advancement parent, List<Advancement> childList)private static intexecuteAdvancement(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Collection<Advancement> selection)private static intexecuteCriterion(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Advancement advancement, String criterion)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)private static List<Advancement>select(Advancement advancement, AdvancementCommand.Selection selection)
-
Field Details
-
SUGGESTION_PROVIDER
private static final com.mojang.brigadier.suggestion.SuggestionProvider<ServerCommandSource> SUGGESTION_PROVIDER
-
-
Constructor Details
-
AdvancementCommand
public AdvancementCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
executeAdvancement
private static int executeAdvancement(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Collection<Advancement> selection) -
executeCriterion
private static int executeCriterion(ServerCommandSource source, Collection<ServerPlayerEntity> targets, AdvancementCommand.Operation operation, Advancement advancement, String criterion) -
select
private static List<Advancement> select(Advancement advancement, AdvancementCommand.Selection selection) -
addChildrenRecursivelyToList
-