ChromaticTooltipsCompat
16 merged pull requests.
New Features
- #15 NEITargetSanitizer uses StackInfo.isFluidDisplayItem/getFluid and reads either mFluidDisplayAmount or neiFluidDisplayAmount, replacing the GTUtility/ItemFluidDisplay path. NEI dev dependency bumped to 2.8.134-GTNH and the mod dependency string adds after:NotEnoughItems@[2.8.134,). - @slprime
- Added: NEI fluid display support in tooltips
- Removed: GregTech requirement for fluid tooltips in NEI
- #9 Implemented ItemArmorElectricMixin to intercept armor durability tooltip generation and display remaining charge information correctly. - @slprime
- Added: ItemArmorElectricMixin for IC2
- Fixed: IC2 electric armor tooltip display
New Content
- #3 Adds assets/chromatictooltips/tooltip.waila.json with a style containing background and border decorators. - @slprime
- Added: Waila default tooltip theme
Bug Fixes
- #16 GuiContainerManagerMixin now also checks Loader.isModLoaded(EnderIO) before calling EnderIOTooltipBridge. NEIHandler swaps GTUtility.getFluidDisplayStack for codechicken.nei.item.ItemFluidDisplay.createStack and drops the GT5 checks. - @slprime
- Fixed: Crash with EnderCore but no Ender IO
- Closes ChromaticTooltips#35
- #14 RichTooltipMixin applies TooltipUtils.applyBaseColorIfAbsent with white to each TextLine, and skips inserting the leading empty TextComponent when the first line is white and the second is not. - @slprime
- Fixed: MUI2 tooltip header detection
- #13 Waila TooltipMixin.computePositionAndSize sets offsetX to 20 or 1, adds 3 to width and 2 to height. WAILAComponent.draw offsets x by 1. Also bumps ChromaticTooltips to 1.0.30-GTNH and other dev dependencies. - @slprime
- Fixed: Waila content padding from the borders
- #12 TooltipFilterMixin.getTooltip now wraps target sanitizing and tooltip assembly in a try block so an exception no longer propagates from the NEI search filter. - @slprime
- Fixed: NEI tooltip filter error on broken tooltips
- #11 Adds a TooltipResolverEvent and CompatTooltipRequestResolver, with new WawlaHandler, ForestryHandler and AdventureBackpackHandler that declare supported modifiers. Reworks AddonGenericTooltipsMixin for Wawla, removes ItemStackKey, and changes the Forestry TooltipLineModifier entries in CompatHandler. - @slprime
- Added: Wawla enchanted book tooltip support, Forestry bee and Adventure Backpack modifier key handling
- Fixed: Enchanted book descriptions not showing with Chromatic Tooltips
- Closes GTNH#24451
- #10 AppleCoreHandler.onFoodStatsEvent now null-checks Minecraft.thePlayer before calling FoodValues.get(stack, player) and returns early when the result is null. - @slprime
- Fixed: AppleCore food tooltip error when no player exists
- #8 GuiContainerCanvasMixin replaced its @Overwrite of renderToolTip with an @Inject at HEAD that draws the Chromatic tooltip and cancels the original call. - @slprime
- Fixed: NoClassDefFoundError when opening Better Questing GUI
- #7 Added BotaniaManaBarPositionTracker, which records the x, y and width from RenderTooltipEvent, and TooltipAdditionDisplayHandlerMixin, which overrides the position and width arguments of drawManaBar and drawTieredManaBar. Registered when the Botania compat config is on and Botania is loaded. - @slprime
- Fixed: Botania mana bar misplaced on Chromatic Tooltips
- #6 Removed the IGuiContainerCreativeAccessor accessor mixin and its registration. GuiContainerManagerMixin now looks up GuiContainerCreative.selectedTabIndex (or its obfuscated name field_147058_w) by reflection, and skips the creative tab lines if the field is not found. - @slprime
- Removed: creative GUI accessor mixin
- Fixed: crash on launch with Chromatic Tooltips and NEI
- Closes ChromaticTooltips#28
- #5 NEIHandler looks up tooltip line handlers by parsing the index after the section-x marker in the line and indexing into tipLineHandlers, replacing GuiDraw.getTipLine. Also bumps ChromaticTooltips to 1.0.22-GTNH and NEI to 2.8.93-GTNH. - @slprime
- Fixed: Bookmark group tooltips showing only 0
- Closes GTNH#24555
- #4 NEITargetSanitizer.sanitize returns the original target when StackInfo.loadFromNBT yields null, before calling normalizeRecipeQueryStack. - @slprime
- Fixed: error when normalizing an item stack for tooltips
- #2 TooltipFilterMixin.getTooltip resolves DyncamicTextComponent lines through their handler and strips formatting codes from the result. Also renames CompatHander to CompatHandler and adds a mixin javadoc to LedgerManagerMixin. - @slprime
- Fixed: NEI and AE terminal search not finding circuits by tier
- Closes GTNH#24416
Performance
- #1 Deleted the cached modifier set in CompatHandler.java. The uncached code path has negligible performance cost. - @Alexdoru
- Removed: tooltip modifier cache
- Fixed: excessive memory usage from cache (29 MB)
Contributors
Everyone who authored, reviewed or co-authored a change on this page, with how many of them: