Class ClearCommand


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

      Fields 
      Modifier and Type Field Description
      private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_MULTIPLE  
      private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_SINGLE  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClearCommand()  
    • Field Detail

      • ERROR_SINGLE

        private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_SINGLE
      • ERROR_MULTIPLE

        private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_MULTIPLE
    • Constructor Detail

      • ClearCommand

        public ClearCommand()
    • Method Detail

      • register

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

        private static int clearInventory​(CommandSource p_198244_0_,
                                          java.util.Collection<ServerPlayerEntity> p_198244_1_,
                                          java.util.function.Predicate<ItemStack> p_198244_2_,
                                          int p_198244_3_)
                                   throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException