public class ClearCommand
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
MULTIPLE_FAILED_EXCEPTION |
private static com.mojang.brigadier.exceptions.DynamicCommandExceptionType |
SINGLE_FAILED_EXCEPTION |
Constructor and Description |
---|
ClearCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
clearInventory(CommandSource source,
java.util.Collection<ServerPlayerEntity> targetPlayers,
java.util.function.Predicate<ItemStack> itemPredicateIn,
int maxCount) |
static void |
register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher) |
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType SINGLE_FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType MULTIPLE_FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> dispatcher)
private static int clearInventory(CommandSource source, java.util.Collection<ServerPlayerEntity> targetPlayers, java.util.function.Predicate<ItemStack> itemPredicateIn, int maxCount) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException