Paint_Ninja
8443262e39
Improve event javadocs based on community feedback, apply jSpecify to more events
2025-10-10 14:57:38 +01:00
Paint_Ninja
aea804cb6e
Make BuildCreativeModeTabContentsEvent a record
2025-10-06 20:12:13 +01:00
LexManos
0bffcb83c5
Fix CustomizeGuiOverlayEvent mistakenly being a RecordEvent
2025-10-05 09:51:12 -07:00
Paint_Ninja
9a022d1451
Move more events away from the mod BusGroup ( #10676 )
...
Also adds more validation to strict mode. See the GitHub PR for further details.
2025-10-05 14:02:45 +01:00
LexManos
58aa3b276c
Add the new vanilla info object to Keyboard and Mouse related events.
2025-10-02 12:09:01 -07:00
LexManos and Paint_Ninja
b0ccf1a480
Minecraft 1.21.9 update.
...
There a lot of performance improvements related to events.
No more InheritableEvent for abstract events that you shouldn't add listeners to anyway, like EntityEvent. Use their sub-events.
Made a lot more events records and interfaces. Mostly just a binary break, but has better performance.
Mod bus posting methods are now static, no more ModLoader.get() for those.
ObjectHolder was removed, use RegistryObject.
Changed RuntimeEnumExtender to only target Minecraft classes. If you want other modders to interact with your API, use an Interface instead of Enum.
Moved some abstract event methods to only the relevant sub-events now, e.g. can no longer check the side of a ClientTickEvent, because it'll always be client
Rendering has changed a lot, they now batch most things together so that the game will render faster.
RenderHighlightEvent changed a lot
See https://github.com/MinecraftForge/MinecraftForge-Experimental/tree/1.21.9-dev for unsquashed commits.
Co-authored-by: Paint_Ninja <PaintNinja@users.noreply.github.com >
2025-10-01 13:05:12 -07:00
LexManos
c1d703e395
Fix Crafters not inserting into IItemHandlers. Closes #10667
2025-09-23 13:42:29 -07:00
LexManos
728fd6ff24
Optimize ConcatenatedListView's Iterator and fix hidden CreativeTabs taking up page space.
2025-09-23 13:37:53 -07:00
Jonathing
4c1c3aafdb
Deprecate JS CoreMods, remove Forge's usages of them ( #10659 )
2025-09-16 20:13:30 +01:00
Joseph T. McQuigg
f06727a205
Replace Blocks.FARMLAND checks with instanceof FarmBlock ( #10647 )
...
Signed-off-by: Joseph T. McQuigg <J.T.McQuigg12@gmail.com >
2025-09-10 20:17:42 -07:00
Matt
ec7a098f81
Add event for adding framepasses ( #10612 )
2025-08-23 22:09:12 -07:00
Matt
ff25961a05
Add ForgeLayeredDraw & AddGuiOverlayLayersEvent as API for gui overlay management. ( #10579 ) ( #10611 )
2025-08-21 12:56:12 -07:00
LexManos
eae9b9145d
Optimize VillagerTradingManager, avoid redundant work. Closes #10577
2025-08-12 18:02:33 -07:00
Paint_Ninja
e80c3402b7
Optimise WorldWorkerManager ( #10578 )
2025-07-23 18:37:02 +01:00
LexManos
2e48910b4c
Fix crash when clicking links in modlist without being in-world.
2025-07-16 10:21:55 -07:00
LexManos
70dd556db6
Use vanilla's entrypoint for GameTest servers
2025-07-01 23:56:59 -07:00
LexManos
e44a558f37
Fix Forge error screen not rendering text correctly. Closes #10569
2025-07-01 23:41:08 -07:00
Joseph T. McQuigg
5e75de5eb7
Add WanderTradesEvent#Pool Constructor with List<ItemListing> and int directly ( #10566 )
2025-06-23 17:06:32 -07:00
Mysticdrew
9e55363e2c
Add Event for Picture in Picture renderers registration.
2025-06-20 14:21:27 -07:00
Paint_Ninja
219abfed22
Make more events records
2025-06-20 18:22:53 +01:00
Paint_Ninja
6915753b5a
Fix posting cancellable child events with non-cancellable inheritable parents
...
Also made more events SelfDestructing to save a tad more memory
2025-06-20 10:16:26 +01:00
LexManos and Paint_Ninja
5e8942e0a7
1.21.6 - New EventBus 7
...
A full rewrite and redesign of the library that offers much better performance, new features and fixes all previous design flaws
See the migration guide here: https://gist.github.com/PaintNinja/ad82c224aecee25efac1ea3e2cf19b91
Co-authored-by: Paint_Ninja <PaintNinja@users.noreply.github.com >
2025-06-18 02:53:58 -07:00
Matt
d1f79d6655
Fix warped and crimson fungi not being able to be placed on nylium. ( #10544 )
...
Fix other PlantType parity issues, add test for all vanilla PlantType blocks.
Co-authored-by: LexManos <LexManos@gmail.com >
2025-05-23 02:22:26 -07:00
LexManos
a1c275df46
Deprecate GatherDataEvent.validate() as validation always happens. And made ExistingFileHelper always function. Closes #10516
2025-05-21 23:42:44 -07:00
LexManos
b7e2593d48
Fix dedicated server not loading default language files. Fixes #10555
2025-05-16 13:01:02 -07:00
Olivier Sechet
5d2186df63
Ensure changes from keyboard in ForgeSlider behave as changes from mouse ( #10554 )
2025-05-09 15:14:16 -07:00
LexManos
3de0566425
Make unbound tags non-fatal due to Mojang's registry loading order issues. Closes #10524
2025-05-05 14:52:43 -07:00
LexManos
a5ebf3b645
Fix PlayerEquipmentInvWrapper offset. Closes #10532
2025-05-05 12:13:58 -07:00
Paint_Ninja
63d0496cc4
Deprecate DistExecutor for removal ( #10198 )
2025-04-23 20:54:22 +01:00
Erizamanu
eb001a6382
Add ChunkEvent.LightingCalculated, fixes #8354 ( #10533 )
2025-04-22 21:11:26 +01:00
Paint_Ninja
504dcad849
Seal most event hierarchies ( #10515 )
...
Most events in Forge are not designed to be extended by mod devs but technically allowed it before this PR, leading to a risk of unintentional breaking changes for those that do.
If you need to extend a Forge event, please let us know so that we can explicitly support that and design it with extending in mind. Note that this change does not affect making your own events that directly extend from EventBus' `Event` class.
2025-04-19 13:18:48 +01:00
Matt
81f7f029c3
Fix NPE when breeze deflects a projectile ( #10535 )
2025-04-19 13:08:10 +01:00
Jonathing
207c1997c9
Fix Swords and Pickaxes not using ToolActions ( #10520 )
2025-04-06 12:08:21 -05:00
LexManos
0f3b8ee830
Add DeferredRegistryData to help with generating data driven registry entries.
...
Revive GameTest system and make all but one Forge Test mod pass.
2025-03-27 20:52:35 -07:00
LexManos
b4b6e48a7a
Fix Mod List Screen's render layout and scroll bars.
2025-03-26 18:54:11 -07:00
d50a3b5ab7
Minecraft 1.21.5
...
Co-authored-by: Ven <tudurap.com@gmail.com >
Co-authored-by: Jonathing <me@jonathing.me >
2025-03-26 16:34:26 -07:00
Joseph T. McQuigg
88904a1d09
Add Pumpkin Block and Item Tags ( #10482 )
2025-03-17 00:04:24 +00:00
Jonathing
b864faf0ef
Add '#forge:chorus_additionally_grows_on' tag for similar mechanics to '#minecraft:azalea_grows_on' but for chorus ( #10459 )
2025-03-04 12:47:17 -08:00
cech12
c97eabc0c4
Fix Hanging Pale Moss not dropping with modded shears ( #10414 )
2025-02-17 18:06:56 -08:00
Jonathing
dcafb4f633
Fix corrupted and invalidly symlinked worlds crashing on level select ( #10406 )
2025-02-12 11:52:53 -08:00
Jonathing
1ea7ce9831
Add fast graphics render type to block model jsons ( #10394 )
...
Make modded leaves behave like vanilla leaves by default (Fixes #10389 )
2025-02-12 11:47:09 -08:00
Jonathing
674f2efd54
Add updated tag context to AddReloadListenerEvent ( #10412 )
...
Fixes using custom tags in GlobalLootModifiers.
2025-02-12 11:02:22 -08:00
Jonathing
02e82c672d
Give ItemStack context to IForgeItem.getCapabilityProvider ( #10404 )
2025-02-05 09:15:37 -08:00
RealMangoRage
b25f6e3a7c
Re-introduce ItemStack Capabilities ( #10324 )
2025-02-03 18:44:44 -08:00
Jonathing
79efe2ac36
Fix forced chunks never being ticked by the server ( #10325 )
2025-02-03 13:47:36 -08:00
Jonathing
55862dfd1d
Re-introduce IForgeItem.damageItem when an item takes damage, Fixes #10344 ( #10371 )
2025-02-03 13:17:38 -08:00
Jonathing
68698d70c1
Fix shield disabling being completely ignored ( #10316 )
2025-01-27 15:24:30 -08:00
Jonathing and LexManos
3e6583af01
GameTestHelper additions ( #10338 )
...
Co-authored-by: LexManos <LexManos@gmail.com >
2025-01-27 09:15:57 -08:00
Paint_Ninja and TelepathicGrunt
762f6a7d78
Add c:flowers, c:flowers/tall, and c:flowers/small block and item tags ( #10335 )
...
Co-authored-by: TelepathicGrunt <40846040+telepathicgrunt@users.noreply.github.com >
2025-01-25 20:55:58 +00:00
LexManos
ec5ac91389
Fix render_type in block models not being used. Fixes #10294
2025-01-13 13:27:47 -08:00