easy_gui-2.1.jar
Curse Maven Snippet
What's new
Changelog
2.1 — Minecraft 26.1.2
Changes since 2.0.1, the latest release on CurseForge (easy_gui-2.0.1.jar, Minecraft 1.21.1, NeoForge).
Heads-up: this release moves EasyGui from Minecraft 1.21.1 to 26.1.2. It only runs on 26.1.2 and is not backwards compatible with 1.21.1. Most of the public API was changed to match the new vanilla rendering and input APIs, so mods built against 2.0.x will need code changes.
Platform / build
- Minecraft
1.21.1→26.1.2(version range is now exactly[26.1.2]). - NeoForge
21.1.215→26.1.2.59-beta. The mod now requires NeoForge26.1.2.59-betaor newer. - Java toolchain 21 → 25.
- ModDevGradle
1.0.21→2.0.141. Parchment mappings removed. The data run now usesclientData(). - Access transformers updated for the new
AbstractContainerScreenmethods (extractSlotHighlightBack,extractSlotHighlightFront,extractFloatingItem). The oldEditBox/GuiGraphicsscissor-stack ATs were removed.
Added
- Option to show or hide container labels.
UIFrame#setShouldRenderLabels(boolean)andUIFrame#shouldRenderLabels()control whetherEasyContainerScreendraws the vanilla title and inventory labels. - A hook for overriding label rendering. Override
UIFrame#renderLabels(GuiGraphicsExtractor, int, int)and returnfalseto cancel the default label rendering, ortrueto keep it. ITextureData#getResource(), which returns the texture'sIdentifier.ITextureData#renderWithOffset(...)andrenderWithOffestAt(...)for drawing a texture with a UV offset (implemented inTextureDataandTextureDataSubsection).EasyMouseEvent#wasDoubleClicked(),getMouseEvent(),getScrollX()andgetScrollY().EasyKeyEvent#getKeyEvent().
Changed (breaking)
- Container labels are now hidden by default.
shouldRenderLabelsstarts asfalse, so anEasyContainerScreenno longer draws the vanilla title or inventory labels unlesssetShouldRenderLabels(true)is called. - Rendering: every
GuiGraphicsparameter is nowGuiGraphicsExtractor. This coversrender,renderTick,run,runChildren, culling, bound checks and allITextureDatarender methods. - Transforms: matrices are now 2D.
Matrix4fbecameMatrix3x2finRenderableElement,UIFrame,Positioning,IPositioningContext,PositioningContextsandTransform. - Points:
getGlobalPoint,getGlobalCornerPoint,globalToLocalPointandglobalToLocalPositionPointnow return JOMLVector2finstead ofVec2. - Rotation: only Z (in-plane) rotation is supported.
Transform#setXRotation,setYRotation,getXRotationandgetYRotationwere removed. - Resource keys:
ResourceLocationbecameIdentifiereverywhere. This includesEasyOverlayHandler.registerOverlay,overrideVanillaOverlay,getFrame,EasyOverlayPosition.ABOVEandBELOW, andTextureData/TextureDataSubsection. TheTextureDatarecord component was renamed fromtextureLocationtoidentifier. - Mouse events:
UIFrame#mouseClicked,mouseReleasedandmouseDraggednow take vanilla'sMouseButtonEvent, andmouseClickedalso takes adoubleClickedflag. TheEasyMouseEventfactory methods and constructor were changed to match. The publicbuttonfield was removed; usegetMouseEvent().button()instead.getDeltaX()andgetDeltaY()were replaced bygetScrollX()andgetScrollY(). - Key events:
UIFrame#keyPressedandkeyReleasedand theEasyKeyEventfactories now take vanilla'sKeyEvent.getKeyCode(),getScanCode()andgetModifiers()were removed; usegetKeyEvent()instead. - Screens:
EasyScreenandEasyContainerScreennow override the new vanillaextract*methods (extractRenderState,extractLabels,extractTooltip,extractSlot,extractSlotHighlightFront/extractSlotHighlightBackandextractFloatingItem) in place of the oldrender*methods.resizenow takes(int width, int height)and callssuper.resize. UIFrame#renderHoveredItemSlotnow takes(GuiGraphicsExtractor, AbstractContainerScreen<?>)and finds the hovered slot itself.EasyOverlayLayernow implements NeoForge'sGuiLayerinstead ofLayeredDraw.Layer.EasyTooltip#componentis now an immutableComponent(it was aMutableComponent). Tooltips are drawn through the new vanilla tooltip pipeline with their owneasy_gui:easy_tooltip/<id>style.- Item tooltips in container screens are now drawn with
setTooltipForNextFrame, so they respect the item'sTOOLTIP_STYLEcomponent.
Removed
TextureSpriteData, the atlas-sprite texture data. UseTextureDataorTextureDataSubsectioninstead.util.BoundChecker.- The scroll and mouse-button
InputEventlisteners inEasyOverlayLayer. Overlays no longer receive global mouse click or scroll input; key input is still forwarded. - Z-index is no longer applied as a render-depth translation, because the 2D pose stack has no Z axis.
getZIndex/getTotalZIndexstill decide hover and event priority, but they no longer affect draw order.
Docs
- README now has installation instructions using JitPack.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects