[26.3] DillonLib 1.2
Curse Maven Snippet
What's new
Version 1.2
- Introduce
DillonLibScreeninterface, a basic interface which can be implemented on new screen classes to make creating screens easier. Acts like a normal options/menu screen class, with more functionality and expansion with the use ofScreenBuilder. - Introduce
BasicDillonLibScreen(an instance of Screen), andDillonLibMenuScreen(an instance of OptionsSubScreen). Acts like a normal screen class, with more functionality and expansion with the use ofScreenBuilder. - Introduce
ScreenBuilder, a utility class, which must be constructed inBasicDillonLibScreenandDillonLibMenuScreen, and can be used as a literal screen builder. - Introduce
WidgetData, which stores custom widget data like if the widget should be active, an active/inactive tooltip, and a custom x/y pos.
ClientTasks.drawModInfonow calculates the size of your mod version text and automatically determines how to place the text and logo on a screen.- Renamed
ClientTasks.tryOpenYaclScreentoClientTasks.tryOpenConfigScreenand added aModConfigLibparameter, to include which mod needs to be loaded to open a config screen.
- Added
ModConfigLibrecord, which takes in a ComponentlibNameas the literal mod's library name to display, and aModReferenceto check if the library is loaded from mod id. ModReferences andModConfigLibs are now created usingofmethods, and constructors are now private.PlatformMenuButtons constructor is now also private, and new buttons are creating usingofmethods, as well as additional methods added into the class, to make creating buttons easier.- Moved
ClientTasks.createSpriteIconButtontoUpdatableSpriteButton.createSpriteIconButton, UpdatableSpriteButton constructors are now private. PredicateEntryconstructor is now private, now created withofmethods, and added more methods to make creating predicates easier.
- Removed
LogoWidthenum, no need for it anymore. - Remove
logoWidthmethod from ModPlatform. - Remove
loggermethod from ModPlatform. - Rename
@NotNullannotations from object-returned methods. - Rename PlatformRelease to
Release, and rename PlatformName toPlatform.- "platformRelease()" method in ModPlatform is now named
release(). - "platformName()" method in ModPlatform is now named
`platform`().
- "platformRelease()" method in ModPlatform is now named
- Reorder methods in ModPlatform.
- Add
Linksclass. - Add
ScreenInvoker. - Add a couple more texts.
- Add doc comment to
modVersionmethod in ModPlatform to useCommonModPlatform.commonModVersion(). - Rename
PredicateSignedannotation toPredicated. - Removed deprecated
RecipeSerializerFactory.
- Added a screen to directly open the config file.
- Fixed DillonLib config not loading upon game launch.
This mod has no additional files