Class ClearInventoryCommands
java.lang.Object
net.minecraft.server.commands.ClearInventoryCommands
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DynamicCommandExceptionTypeprivate static final DynamicCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intclearInventory(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate, int maxCount) private static intclearUnlimited(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate) static voidregister(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context)
-
Field Details
-
ERROR_SINGLE
-
ERROR_MULTIPLE
-
-
Constructor Details
-
ClearInventoryCommands
public ClearInventoryCommands()
-
-
Method Details
-
register
public static void register(CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) -
clearUnlimited
private static int clearUnlimited(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate) throws CommandSyntaxException - Throws:
CommandSyntaxException
-
clearInventory
private static int clearInventory(CommandSourceStack source, Collection<ServerPlayer> players, Predicate<ItemStack> predicate, int maxCount) throws CommandSyntaxException - Throws:
CommandSyntaxException
-