Im trying to use the getDisplayItemStacks method in the ItemFilterApi https://github.com/latvian-dev/item-filters/blob/1.20/main/common/src/main/java/dev/latvian/mods/itemfilters/api/ItemFiltersAPI.java#L83 . I'm passing a valid Item into it, but no matter what I use as the second argument iz results in the below error. I'm trying to call this client sided to then dynamically change the tooltip.
#Trying to use method from mod class results in error
10 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Paste version of message.txt from @native wraith
bump
bump 2
I really need to get this to work. is there some other data structure I need to pass in as a second argument
last bump
So passing in java.util.List like so
const $List = Java.loadClass("java.util.List")
$ItemFiltersAPI.getDisplayItemStacks(Item.of('kubejs:inventory_puller_tier_1', '{filter:{item:"itemfilters:or",nbt:{items:[{Count:1b,id:"itemfilters:tag",tag:{value:"forge:glass"}},{Count:1b,id:"itemfilters:not",tag:{items:[{Count:1b,id:"minecraft:glass"}]}}]},type:"itemfilters"}}'), $List.of())
then gives this different error (file)
it says that it is an imutatable collection even though it should be what was passed in. What is wrong here?
Paste version of message.txt from @native wraith
is it some rhino shit?