bigguy345
4b06937385
Added separator line for documentation in hover info
2025-12-27 15:02:57 +02:00
bigguy345
448329386e
Added documentation for method/field declarations and displayed it in hover info
2025-12-27 14:51:00 +02:00
bigguy345
4d670f31de
Removed declaration from unresolved token hover infos
2025-12-27 13:51:11 +02:00
bigguy345
a7ed8549a9
Added hover info modifiers for script method declarations/fields and chained fields
2025-12-27 00:40:58 +02:00
bigguy345
c694785de3
Accounted for float/double decimal place precision
2025-12-27 00:25:19 +02:00
bigguy345
2e99dffc33
Auto casted 1f, 1.0f to to floats same for doubles
2025-12-27 00:16:07 +02:00
bigguy345
1dbeaf2c84
Accounted for arrays in expression parsing
2025-12-27 00:09:14 +02:00
bigguy345
2ffe95dc0f
Fixed parameters being resolved as args
2025-12-27 00:08:49 +02:00
bigguy345
bc3e8cb28e
Refactored TokenType.NUMBER to LITERAL and added error hover infos for it
2025-12-27 00:08:12 +02:00
bigguy345
026a3dc8d3
Fixed modifiers breaking global field declaration type
2025-12-26 23:23:38 +02:00
bigguy345
d9d89a2f23
Primitive type class color
2025-12-26 23:15:14 +02:00
bigguy345
662d843147
Small refactor
2025-12-26 23:11:12 +02:00
bigguy345
c591a91857
Fixed primitive types not being properly resolved
2025-12-26 23:10:36 +02:00
bigguy345
8a0c7c5a65
Added method call arg errors to all errored args
2025-12-26 22:55:13 +02:00
bigguy345
fc9c9e187e
Added FieldAccessInfo errors to hover info
2025-12-26 22:16:54 +02:00
bigguy345
50165677c7
Fixed HoverInfo not being created for method declarations (as MethodInfo was never assigned to mark creation)
2025-12-26 21:38:22 +02:00
bigguy345
25800e9c3d
Fixed token position calculation under mouse being inconsistent under single character tokens "y"
2025-12-26 21:28:48 +02:00
bigguy345
e0b4aece90
Changed HoverInfo's package color
2025-12-26 19:43:43 +02:00
bigguy345
258abeec0b
Rendered a chained field's correct package (of receiver)
2025-12-26 19:43:16 +02:00
bigguy345
3982d5082d
Hooked FieldAccessInfo so it's a field's default data instead of the basic FieldInfo, as access info has more context
2025-12-26 19:35:57 +02:00
bigguy345
586d43f08b
Fetched correct package name for Class<?> types that have null getPackage
2025-12-26 18:33:54 +02:00
bigguy345
28761df3b2
oops forgor
2025-12-26 18:16:33 +02:00
bigguy345
2c645beddf
Improved hover state hover logic
2025-12-26 18:15:13 +02:00
bigguy345
a4692388a8
Improved fetching token under mouse logic
2025-12-26 18:12:02 +02:00
bigguy345
351e663212
Improved TokenHoverRenderer
2025-12-26 17:29:36 +02:00
bigguy345
741608a353
Click to pin HoverState option
2025-12-26 17:28:28 +02:00
bigguy345
9d5c577cf4
Improved token info colors
2025-12-26 01:35:32 +02:00
bigguy345
72686b8f86
First implementation of TokenHoverInfo
2025-12-26 01:24:40 +02:00
bigguy345
78a6a29b1c
Validated right hand expression type is the expected type at variable declaration, and underlined the mismatched type's token if not.
2025-12-25 23:12:36 +02:00
bigguy345
b38f193d08
Improved CTRL + Left/Right logic
2025-12-25 11:35:39 +02:00
bigguy345
92cffdf555
Improved CTRL + Backspace logic
2025-12-25 11:31:42 +02:00
bigguy345
f5cb81ea89
Removed no longer used underline fields
2025-12-25 01:35:53 +02:00
bigguy345
cbb5f3e2ae
Made method call underlines work multi lines
2025-12-25 01:35:27 +02:00
bigguy345
8bcbc4c7cd
Fixed IndexOutOfBounds
2025-12-25 01:07:44 +02:00
bigguy345
76fe28e42c
Improved arg count/type error underline rendering logic again
2025-12-25 00:58:37 +02:00
bigguy345
2ff1b3a6cf
Improved arg count/type error underline rendering logic
2025-12-24 23:50:58 +02:00
bigguy345
5af5793718
Improved curly underline rendering
2025-12-24 23:47:18 +02:00
bigguy345
54cd31724d
Fixed thePlayer in
...
"getMinecraft().thePlayer" not highlighting properly + more optimisations
2025-12-24 22:55:20 +02:00
bigguy345
b9d1a9f657
Chaining of fields/methods like
...
"Minecraft.getMinecraft().thePlayer.worldObj" is now completely functional
2025-12-24 21:24:37 +02:00
bigguy345
fbf60bafb4
Lil clean up
2025-12-24 21:02:08 +02:00
bigguy345
f6539b071c
Highlighted unused imports
2025-12-24 20:28:47 +02:00
bigguy345
65953d77c4
Removed unused
2025-12-24 20:19:01 +02:00
bigguy345
d9f16fef8a
Stored MethodCallInfo and FieldCallInfo properly for method call args, and underlined them when errored for 2 error types; wrong method call args count and wrong arg type
2025-12-24 20:10:10 +02:00
bigguy345
9cb4c96eb3
Code logic improvements
2025-12-24 19:10:37 +02:00
bigguy345
457a8aae37
A lot of ScriptDocument processing improvements
2025-12-24 14:07:45 +02:00
PeTcHeNkA
6e2fe788d2
Improve readability in getEntityTexture#RenderNPCInterface
2025-12-24 03:50:03 +03:00
PeTcHeNkA
9f30438c4f
Validate ResourceLocation existence before assignment in getEntityTexture
...
Previously, skinType==0 branch created a ResourceLocation directly without
checking if the resource actually exists. This was inconsistent with
adjustLocalTexture(), which probes the ResourceManager and falls back on
missing assets.
Now we call Minecraft.geMinecraft().getResourceManager().getResource(resLoc)
and catch IOException. On failure, we fall back to a valid texture via
fallBackSkin(npc), ensuring rendering always uses a valid path and avoiding
invalid ResourceLocation assignments.
This change aligns behavior across texture loading paths and prevents
rendering errors when NPC textures are missing.
2025-12-24 03:39:33 +03:00
PeTcHeNkA
6cce314341
fix: add fallback skin for invalid CustomNPC texture paths
...
- Add empty string check in skinType 0 else branch
- Set textureLocation to fallBackSkin(npc) for invalid textures
- Add null safety check before returning textureLocation
- Prevents transparent NPCs when invalid paths like "customnpcs:textures/entity/test.png" or "teststring" are used
2025-12-24 03:28:09 +03:00
bigguy345
74fe7cb892
Fixed generics List<String> and their depths List<List<String>
...
not working properly.
Added chained fields highlight like mc.thePlayer.worldObj
Decreased UNDEFINED_VAR priority.
2025-12-23 17:12:03 +02:00
bigguy345
555fb481d3
More fixes and improvements
2025-12-23 14:40:50 +02:00