Class ClearCommand

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

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

    • FAILED_SINGLE_EXCEPTION

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

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_MULTIPLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named FAILED_MULTIPLE_EXCEPTION Lnet/minecraft/server/command/ClearCommand;FAILED_MULTIPLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_13488 Lnet/minecraft/class_3020;field_13488:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official b Lalx;b: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
      named register Lnet/minecraft/server/command/ClearCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)V
      intermediary method_13076 Lnet/minecraft/class_3020;method_13076(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V
      official a Lalx;a(Lcom/mojang/brigadier/CommandDispatcher;Lem;)V
    • execute

      private static int execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named execute Lnet/minecraft/server/command/ClearCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Collection;Ljava/util/function/Predicate;)I
      intermediary method_58032 Lnet/minecraft/class_3020;method_58032(Lnet/minecraft/class_2168;Ljava/util/Collection;Ljava/util/function/Predicate;)I
      official a Lalx;a(Leq;Ljava/util/Collection;Ljava/util/function/Predicate;)I
    • 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
      named execute Lnet/minecraft/server/command/ClearCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;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
      official a Lalx;a(Leq;Ljava/util/Collection;Ljava/util/function/Predicate;I)I