Package net.minecraft.server.command
Class EnchantCommand
java.lang.Object
net.minecraft.server.command.EnchantCommand
public class EnchantCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeFAILED_ENTITY_EXCEPTIONprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeFAILED_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeFAILED_INCOMPATIBLE_EXCEPTIONprivate static com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeFAILED_ITEMLESS_EXCEPTIONprivate static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeFAILED_LEVEL_EXCEPTION -
Constructor Summary
Constructors Constructor Description EnchantCommand() -
Method Summary
Modifier and Type Method Description private static intexecute(ServerCommandSource source, Collection<? extends Entity> targets, Enchantment enchantment, int level)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
-
Field Details
-
FAILED_ENTITY_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_ENTITY_EXCEPTION -
FAILED_ITEMLESS_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_ITEMLESS_EXCEPTION -
FAILED_INCOMPATIBLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_INCOMPATIBLE_EXCEPTION -
FAILED_LEVEL_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType FAILED_LEVEL_EXCEPTION -
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
-
-
Constructor Details
-
EnchantCommand
public EnchantCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
execute
private static int execute(ServerCommandSource source, Collection<? extends Entity> targets, Enchantment enchantment, int level)
-