mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 04:54:51 +00:00
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:
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) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user