#(andrew_pape) get a list of all the npc

14 messages · Page 1 of 1 (latest)

mellow smelt
#

is there a way to loop all the npcs and put them inside a gui (i really just want the looping part, i found the sorted() method but uh yeah idk if that work nor how to use it (I,m not using 100% java sine i use skript-reflect but i can still try to turn the given java code into skript reflect)

heady carbonBOT
#

(andrew_pape) get a list of all the npc

heady carbonBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

iron meteor
#

Npcregistry is iterable

#

So it should be treated as a list by skript reflect

lethal wagonBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@mellow smelt

mellow smelt
#

yeah i'm really not understanding anything about iterators 🙏

#

i'm trying to loop the CitizensNPCRegistry is it the right one? it says it's only a single value and not a list

iron meteor
#

@mellow smelt I'm not familiar with skript reflect but yes you can loop through that class in Java

#

It's not a list but it is an iterable

#

Which means you can loop through it in Java

mellow smelt
#

lucky you i never used java and doesn't know 1% of how to use skript-reflect, i will go ask on another help server with a dedicated channel for skript reflect with the new info added to my message, thanks for the help :3