Add filter argument to inventory list function #1785
Labels
area-Minecraft
This affects CC's Minecraft-specific content.
enhancement
An extension of a feature or a new feature.
wontfix
A bug which I won't fix or an enhancement which won't be implemented.
Update
inventory.list()
to beinventory.list([filter])
, where filter is a JEI-like search string.The main issue is performance when searching for items in large inventories by tag. Tags don't come back in the list by default, so you have to iterate through
getItemDetail
. Presumably Lua is going to be slower than Java and there will be some marshalling overhead - this could be avoided if we could push the filtering functionality up into Java.The text was updated successfully, but these errors were encountered: