82 Commits
Author SHA1 Message Date
XXMA16 519db68613 Fix StoppingEngineEvent being fired too late on Forge (#3943) 2024-02-08 01:00:10 +02:00
Yeregorix 2796912365 Pass the original StringReader to the Forge CommandEvent 2023-04-24 14:52:44 +02:00
Yeregorix a4ad38b201 Fix forge interactions (#3844)
* Fix Forge right click block

* Cleanup left click block

* Cleanup interact entity

* Use Forge reach distance
2023-04-21 22:10:20 +02:00
Yeregorix 7834309b69 Support modded tile entities 2023-04-13 19:09:01 +02:00
zml ae86a5c88c *: apply the import order from SpongeAPI consistently
This mostly resolves the import order issues introduced when remapping
2022-10-16 16:41:40 -07:00
zml d8332fccdd build: Bump dependency versions
various gradle plugins
bump asm to 9.4 for compat with newer Java versions
misc build-time dependencies
2022-10-15 22:29:28 -07:00
Yeregorix ae84ec8755 Fix item translations on Forge (#3776) 2022-10-13 07:44:33 -07:00
connorhartley 6457737417 log open inventory and track transactions during forge open gui 2022-08-31 20:37:27 +12:00
Connor Hartley cdf7123d7e Call loaded game event on Forge (#3738)
Similar to SpongeVanilla, we call LoadedGameEvent after StartedServer
2022-08-15 01:10:40 +03:00
Daniel Naylor a72a2f6f6c Only warn about having no parent registry for minecraft namespaced registries. 2022-06-13 19:21:14 +01:00
Nick DeGruccio 6e4b474750 SF: Delegate Vanilla registry population to Forge delegates 2022-06-03 12:53:07 +01:00
Daniel Naylor 5f68c7b68e Fire chat events on both SV and SF (and sync them) (#3670)
* Ensure we use the linkified version of the message as the starting point (the ChatFormatter.formatChatComponent method was otherwise redundant).
2022-04-28 20:18:54 +01:00
Anselm Brehme 5297c93c17 fix SpongeForge not loading/saving level data
fixes #3581
2022-03-19 01:43:48 +01:00
Morpheus 235f3dd293 Remove timings from implementation
Users should use a profiler or sampling plugin should they require the use of timings.
2022-03-15 20:13:35 +00:00
Gabriel Harris-Rouquette c43b095c95 Reintroduce Superclass Transformations
Properly reintroduces superclass transformers with
ModLauncher's ITransformer api. There are some quirks with
needing to accept transforming classes multiple times based
on voting contexts. This functions as expected in both
development and production cases from limited testing.

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2022-02-25 00:25:51 -05:00
Gabriel Harris-Rouquette ad2af478d7 Add modlauncher-transformers project
A general purpose project to enable SpongeForge and SpongeVanilla
to ship and share the same transformers thereby reducing code
duplication.

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2022-02-25 00:25:51 -05:00
Anselm Brehme 73f726c660 implement locateResource for Forge PluginContainers 2022-02-17 21:50:45 +01:00
Gabriel Harris-Rouquette 5f7b4c58ad Null check world on entity creation. Fixes #3631.
It's not always clear but some cases should be null checked to avoid
NPE's.

Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2022-02-17 00:39:15 -08:00
Gabriel Harris-Rouquette 84a2bebfc7 Add ForgeWorldHooks. Fixes #3588.
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2022-02-07 23:18:04 -08:00
ImMorpheus 5fa992b782 Revert "remove timings"
This reverts commit 3026c98754.
2022-01-29 23:49:57 +01:00
ImMorpheus 3026c98754 remove timings 2022-01-29 23:34:50 +01:00
Gabriel Harris-Rouquette bf5f2da0f3 Lower priority overwrite for LivingEntity.hurt. Fixes #3603
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2022-01-26 23:33:24 -08:00
Gabriel Harris-Rouquette 9cfc456327 Update Player.attack overwrite with Forge specific hooks 2022-01-09 14:52:15 -08:00
Gabriel Harris-Rouquette 533f0587b0 Implement VanishState 2022-01-07 22:53:47 -08:00
Gabriel Harris-Rouquette b705b641b0 Merge pull request #3550 from SpongePowered/feature/git-manifests
Add Git details to jar manifests
2021-11-25 14:42:53 -08:00
zml d6522599a2 build: Work on separating out library layers
This will enable better separation going forward, especially once 1.18
goes into release and we begin updating for Forge 1.17+
2021-11-10 16:46:57 -06:00
Gabriel Harris-Rouquette 3de179c18e Add Git details to jar manifests
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2021-10-24 22:21:12 -07:00
zml 06b591b7af forge: Bump dependency to a version that provides Mixin 0.8.4 2021-09-19 18:36:10 -07:00
Daniel Naylor 65d744fe1b forge: Ensure we use the correct exception handler when events fail.
Should allow #3538 to report the correct error.
2021-09-15 21:19:01 +01:00
Chris Sanders ece3eb6b59 forge: Wrap events in frames
To accomplish this, I extend the EventBus class (thank you Forge for at
least not making it final...) and override the appropriate methods.
While still somewhat hacky, I've did my best to keep it to a minimal.

Closes #3530

Signed-off-by: Chris Sanders <zidane@spongepowered.org>
2021-09-11 15:03:29 -05:00
Chris Sanders 3dd7ec4a13 forge: roll Mixin back to 0.8.2 to be compatible
We really need to figure out how to stop Loom from automatically
supplying the Mixin artifact...

Signed-off-by: Chris Sanders <zidane@spongepowered.org>
2021-09-11 15:01:28 -05:00
Chris Sanders 02b7ba765c Fixup standards from prior commit
Signed-off-by: Chris Sanders <zidane@spongepowered.org>
2021-09-11 09:40:07 -05:00
Gabriel Harris-Rouquette 55570ff1cf Forge moves itemstack.mine before breaking the block. Fixes #3516
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
2021-09-10 23:23:15 -07:00
Chris Sanders 704957bd58 Add missed playerTouch reflection mapping.
- Also make the printout from a lack of a mapping to the target class to
make diagnostics faster.

Signed-off-by: Chris Sanders <zidane@spongepowered.org>
2021-09-09 09:36:37 -05:00
Chris Sanders ba41da9adb forge: Update for plugin-meta 0.8.0 and plugin-spi 0.3.0
Signed-off-by: Chris Sanders <zidane@spongepowered.org>
2021-09-08 00:25:55 -05:00
Daniel Naylor 14b2521be9 vanilla: Add dependency resolution and 0.3.0 plugin-spi
This ensures plugins are loaded in an appropriate order, so plugins without dependencies are loaded first, and the algorithm recursively determines the load order based on satisifed dependencies. BEFORE dependencies can be supported by uncommenting the code within the TODOs in DependencyResolver, it treats thouse as "optional after" deps on the target -- though will still fail if the dependency is not there and is not optional.

If we have optional dependencies, there is a chance that a cyclic chain may occur. For optional deps, however, they should be able to handle a dependent plugin being loaded before them because they are already "optional". Thus, if we find that no plugins were loaded in a pass and but there were optional dependencies that could be ignored in that scenario, we attempt to load plugins that only have their compulsory dependencies loaded.

As for plugin-spi 0.3.0, migrate to 'sponge_plugins.json' as the
standard metadata file that will be read by Sponge.
2021-09-04 16:04:41 -05:00
Anselm Brehme 875b7dd11e mixin method prefixes 2021-09-01 20:01:40 +02:00
Anselm Brehme 7a75b520ed separate vanilla and forge mixins for elytra and place recipe inventory capture 2021-08-30 19:55:41 +02:00
zml 92543f77bb forge: Use fixed TR version 2021-08-28 23:42:10 -07:00
zml d52b62fdf8 forge: Remove some of the duplicate added jars
This causes different issues with resource packs, which should be
handled at some point.
2021-08-25 20:15:41 -07:00
zml e0bbb1b96d forge: Don't try to add sponge plugins as forge mods 2021-08-25 19:08:31 -07:00
zml 6903aaa881 forge: We are ready to publish, go back to arch's TR fork 2021-08-23 20:58:14 -07:00
zml 8d84bcae74 common: Split FireBlockMixin into platforms to handle forge patches 2021-08-23 20:49:20 -07:00
zml eecc78e8a6 forge: wE RUN in prod now 2021-08-23 20:36:17 -07:00
zml 477042023e forge: primitive mapping manager implementation 2021-08-22 22:26:50 -07:00
zml 5adda51e3f forge: toxic waste dump, approach with caution
it gets to normal mixin errors in prod though
2021-08-22 22:11:30 -07:00
zml 3c9f7dcc19 start, needs to be dev.architectury:tiny-remapper... 2021-08-22 10:27:19 -07:00
Daniel Naylor ca49b0824d forge: Rejig teleporting to fit with ITeleporter.
* Need to put hooks subsitution into the right place.
* Syncs ChangeEntityWorldEvent.Pre/Post with Forge equivalents
* Remove hook for the Post event - because it's literally just calling the event - syncing handles it all.
* Ensure setLocation calls the Pre event in the correct place.
* Also ensure it calls the Post event.
2021-08-10 20:55:27 +01:00
Chris Sanders 6c35ffcedf forge: load plugins from our plugin directories
This isn't fully realized, we'll need to discuss as a team about if
we'll keep plugins in ../mods going forward. Forge's new mod loading is
much more strict about the jars within that folder.

Signed-off-by: Chris Sanders <zidane@spongepowered.org>
2021-08-08 17:20:40 -05:00
Chris Sanders e9ef588b99 forge: Have the constructMod check not break other subclasses of
FMLModContainer.

Signed-off-by: Chris Sanders <zidane@spongepowered.org>
2021-08-08 16:46:48 -05:00