Commit c4bafaf
committed
Use new api for setting glow effect for newer minecraft versions
- Added reflection to invoke `setEnchantmentGlintOverride` method.
- Handled potential exceptions during reflection invocation.
- Ensured compatibility with older versions lacking the method.
- Updated `addGlow` to set enchantment glint override if available.
- Retained existing functionality to hide enchantments.1 parent 414e157 commit c4bafaf
File tree
1 file changed
+15
-0
lines changed- AdvancedCore/src/main/java/com/bencodez/advancedcore/api/item
1 file changed
+15
-0
lines changedLines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
508 | 509 | | |
509 | 510 | | |
510 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
511 | 526 | | |
512 | 527 | | |
513 | 528 | | |
| |||
0 commit comments