If I have an item id like "thermal:silver_ingot", I want to simply get all the tags of it as a JS string array: ["forge:ingots", "forge:ingots/silver"]. How do I do that?
What I've tried:
let item = Item.of(itemId);
let tags = [];
item.getTags() // Java Collection<ResourceLocation>
.forEach((t) => tags.push(t.toString()));
I get this error:
[ERROR] ! Error in 'ServerEvents.tags': class dev.latvian.mods.rhino.MemberBox (in module rhino) cannot access a member of class java.util.stream.ReferencePipeline$Head (in module java.base) with modifiers "public"
[21:51:27] [ERROR] ! java.lang.IllegalAccessException: class …rhino.MemberBox (in module rhino) cannot access a member of class java.util.stream.ReferencePipeline$Head (in module java.base) with modifiers "public"
Similar issue, unresolved:
https://discord.com/channels/303440391124942858/1148653896722554920