net.minecraft.server.command

public class ClearCommand

net.minecraft.server.commands.ClearInventoryCommands
net.minecraft.server.commands.ClearInventoryCommands
net.minecraft.class_3020
net.minecraft.server.command.ClearCommand

Field summary

Modifier and TypeField
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_SINGLE
ERROR_SINGLE
field_13487
FAILED_SINGLE_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
ERROR_MULTIPLE
ERROR_MULTIPLE
field_13488
FAILED_MULTIPLE_EXCEPTION
private static final ElementAggregator$Reporter<ServerPlayerEntity>
RESPONSE_TEST
RESPONSE_TEST
field_1_7551
CLEAR_TEST_REPORTER
private static final ElementAggregator$Reporter<ServerPlayerEntity>
RESPONSE_CLEAR
RESPONSE_CLEAR
field_1_7550
CLEAR_SUCCESS_REPORTER
private static final ElementAggregator$NonzeroReporter<com.mojang.brigadier.exceptions.CommandSyntaxException, ServerPlayerEntity>
ERROR_DISPATCH
ERROR_DISPATCH
field_1_7549
CLEAR_FAILED_REPORTER

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
method_13076(com.mojang.brigadier.CommandDispatcher<class_2168> arg0, class_7157 arg1)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess commandRegistryAccess)
private static int
clearUnlimited(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate)
clearUnlimited(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate)
method_58032(class_2168 arg0, Collection<class_3222> arg1, Predicate<class_1799> arg2)
execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item)
private static int
clearInventory(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate, int maxCount)
clearInventory(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate, int maxCount)
method_13077(class_2168 arg0, Collection<class_3222> arg1, Predicate<class_1799> arg2, int arg3)
execute(ServerCommandSource source, Collection<ServerPlayerEntity> targets, Predicate<ItemStack> item, int maxCount)