Class ClearCommand

java.lang.Object
net.minecraft.server.command.ClearCommand

public class ClearCommand extends Object
Mappings:
Namespace Name
official aen
intermediary net/minecraft/class_3020
named net/minecraft/server/command/ClearCommand
  • Field Details

    • FAILED_SINGLE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_SINGLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Laen;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13487 Lnet/minecraft/class_3020;field_13487:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named FAILED_SINGLE_EXCEPTION Lnet/minecraft/server/command/ClearCommand;FAILED_SINGLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • FAILED_MULTIPLE_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_MULTIPLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official b Laen;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13488 Lnet/minecraft/class_3020;field_13488:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      named FAILED_MULTIPLE_EXCEPTION Lnet/minecraft/server/command/ClearCommand;FAILED_MULTIPLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
  • Constructor Details

    • ClearCommand

      public ClearCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess)
      Mappings:
      Namespace Name Mixin selector
      official a Laen;a(Lcom/mojang/brigadier/CommandDispatcher;Ldl;)V
      intermediary method_13076 Lnet/minecraft/class_3020;method_13076(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V
      named register Lnet/minecraft/server/command/ClearCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)V
    • execute

      private static int execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Laen;a(Ldr;Ljava/util/Collection;Ljava/util/function/Predicate;I)I
      intermediary method_13077 Lnet/minecraft/class_3020;method_13077(Lnet/minecraft/class_2168;Ljava/util/Collection;Ljava/util/function/Predicate;I)I
      named execute Lnet/minecraft/server/command/ClearCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;Ljava/util/function/Predicate;I)I