Class EnchantCommand


  • public class EnchantCommand
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INCOMPATIBLE  
      private static com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_LEVEL_TOO_HIGH  
      private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NO_ITEM  
      private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOT_LIVING_ENTITY  
      private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOTHING_HAPPENED  
    • Constructor Summary

      Constructors 
      Constructor Description
      EnchantCommand()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static int enchant​(CommandSource p_202651_0_, java.util.Collection<? extends Entity> p_202651_1_, Enchantment p_202651_2_, int p_202651_3_)  
      static void register​(com.mojang.brigadier.CommandDispatcher<CommandSource> p_202649_0_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ERROR_NOT_LIVING_ENTITY

        private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NOT_LIVING_ENTITY
      • ERROR_NO_ITEM

        private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_NO_ITEM
      • ERROR_INCOMPATIBLE

        private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INCOMPATIBLE
      • ERROR_LEVEL_TOO_HIGH

        private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_LEVEL_TOO_HIGH
      • ERROR_NOTHING_HAPPENED

        private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOTHING_HAPPENED
    • Constructor Detail

      • EnchantCommand

        public EnchantCommand()
    • Method Detail

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<CommandSource> p_202649_0_)
      • enchant

        private static int enchant​(CommandSource p_202651_0_,
                                   java.util.Collection<? extends Entity> p_202651_1_,
                                   Enchantment p_202651_2_,
                                   int p_202651_3_)
                            throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException