Package net.minecraft.server.commands
Class ExperienceCommand
java.lang.Object
net.minecraft.server.commands.ExperienceCommand
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
addExperience
(CommandSourceStack source, Collection<? extends ServerPlayer> targets, int amount, ExperienceCommand.Type type) private static int
queryExperience
(CommandSourceStack source, ServerPlayer player, ExperienceCommand.Type type) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher) private static int
setExperience
(CommandSourceStack source, Collection<? extends ServerPlayer> targets, int amount, ExperienceCommand.Type type)
-
Field Details
-
ERROR_SET_POINTS_INVALID
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SET_POINTS_INVALID
-
-
Constructor Details
-
ExperienceCommand
public ExperienceCommand()
-
-
Method Details
-
register
-
queryExperience
private static int queryExperience(CommandSourceStack source, ServerPlayer player, ExperienceCommand.Type type) -
addExperience
private static int addExperience(CommandSourceStack source, Collection<? extends ServerPlayer> targets, int amount, ExperienceCommand.Type type) -
setExperience
private static int setExperience(CommandSourceStack source, Collection<? extends ServerPlayer> targets, int amount, ExperienceCommand.Type type) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-