Inventory get filter

./lua/inventory_get_filter.lua
/silent-command
--[[
  Filter the first slots in a players inventory to specific items
]]
game.player.get_main_inventory().set_filter(1, "solar-panel-equipment");
game.player.get_main_inventory().set_filter(2, "fusion-reactor-equipment");
game.player.get_main_inventory().set_filter(3, "battery-equipment");
game.player.get_main_inventory().set_filter(4, "battery-mk2-equipment");
game.player.get_main_inventory().set_filter(5, "belt-immunity-equipment");
game.player.get_main_inventory().set_filter(6, "exoskeleton-equipment");
game.player.get_main_inventory().set_filter(7, "personal-roboport-equipment");
game.player.get_main_inventory().set_filter(8, "personal-roboport-mk2-equipment");
game.player.get_main_inventory().set_filter(9, "night-vision-equipment");
game.player.get_main_inventory().set_filter(11, "energy-shield-equipment");
game.player.get_main_inventory().set_filter(12, "energy-shield-mk2-equipment");
game.player.get_main_inventory().set_filter(13, "personal-laser-defense-equipment");
game.player.get_main_inventory().set_filter(14, "discharge-defense-equipment");
game.player.get_main_inventory().set_filter(15, "discharge-defense-remote");
game.player.get_main_inventory().set_filter(21, "stone-wall");
game.player.get_main_inventory().set_filter(22, "gate");
game.player.get_main_inventory().set_filter(23, "gun-turret");
game.player.get_main_inventory().set_filter(24, "laser-turret");
game.player.get_main_inventory().set_filter(25, "flamethrower-turret");
game.player.get_main_inventory().set_filter(26, "artillery-turret");
game.player.get_main_inventory().set_filter(27, "artillery-targeting-remote");
game.player.get_main_inventory().set_filter(28, "radar");
game.player.get_main_inventory().set_filter(29, "spidertron");
game.player.get_main_inventory().set_filter(30, "spidertron-remote");