I seem to keep finding errors in getAllNpcs and cannot seem to find a method around it. In fact I cannot get NetBeans to even select it if I type World.
Does Npc[] npcs = World.getAllNpcs(); work?
- angriff
 - Thread is marked as Resolved.
 
										
					A new update is now available, introducing "Points of interest" and many more changes!
Latest hotfix: 0.9 (2025-10-31)
		
		Latest hotfix: 0.9 (2025-10-31)
- 
			
 - 
			
 - 
			
Well I get this error .
Npc[] npcs = World.getAllNpcs();
symbol: method getAllNpcs()
location: variable World of type Target
1 error
error: cannot find symbol
 - 
			
dang I sorry.. I did not import import net.risingworld.api.World; And it was third on the list from NetBeans.
Thanks
 - 
			
 - 
			
I'm just about at that point with world protection 😆
 - 
			
															
							red51
Moved the thread from forum Discussions (English) to forum New Plugin API. 
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!