Package net.minecraft.server.commands
Class EnchantCommand
java.lang.Object
net.minecraft.server.commands.EnchantCommand
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intenchant(CommandSourceStack p_249815_, Collection<? extends Entity> p_248848_, Holder<Enchantment> p_251252_, int p_249941_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_251241_, CommandBuildContext p_251038_) 
- 
Field Details- 
ERROR_NOT_LIVING_ENTITYprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOT_LIVING_ENTITY
- 
ERROR_NO_ITEMprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NO_ITEM
- 
ERROR_INCOMPATIBLEprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INCOMPATIBLE
- 
ERROR_LEVEL_TOO_HIGHprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_LEVEL_TOO_HIGH
- 
ERROR_NOTHING_HAPPENEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOTHING_HAPPENED
 
- 
- 
Constructor Details- 
EnchantCommandpublic EnchantCommand()
 
- 
- 
Method Details- 
registerpublic static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_251241_, CommandBuildContext p_251038_) 
- 
enchantprivate static int enchant(CommandSourceStack p_249815_, Collection<? extends Entity> p_248848_, Holder<Enchantment> p_251252_, int p_249941_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
 
-