This device is attached to any existing Smart Block Entity with the Filtering Behaviour. This includes the likes of the Smart Chute and the Smart Fluid Pipe.
This is an example of how to access the device.
local d = require("devices")
local filter = d:find("filtering")
print(filter:getFilter())
Device name: filtering
getFilter():ItemStack
This method gets the current filter item.
setFilter([id: String[, count:number]])
This method sets the filter item.
id
is a string representing the item ID of the new filter.count
is a number representing the item amount of the new filter. This is not used in most implementations.