CRAZY !!! ClassIndex for class auto-import suggestions by matching prefix

i.e. Typing "Ent" suggests "net.Minecraft.entity.Entity" and all other classes that start with Ent
This commit is contained in:
bigguy345 committed 2026-01-04 03:48:10 +02:00
1 parent acae8d84d0
commit 04a0fbc84d
3 files changed
+300

No files matched your search

@@ -124,6 +124,7 @@ import noppes.npcs.client.gui.script.GuiScriptBlock;
import noppes.npcs.client.gui.script.GuiScriptGlobal;
import noppes.npcs.client.gui.script.GuiScriptItem;
import noppes.npcs.client.gui.util.script.PackageFinder;
import noppes.npcs.client.gui.util.script.interpreter.type.ClassIndex;
import noppes.npcs.client.model.ModelNPCGolem;
import noppes.npcs.client.model.ModelNpcCrystal;
import noppes.npcs.client.model.ModelNpcDragon;
@@ -739,6 +740,7 @@ public class ClientProxy extends CommonProxy {
public void buildPackageIndex() {
try {
PackageFinder.init(Thread.currentThread().getContextClassLoader());
ClassIndex.init();
} catch (IOException e) {
}
}