Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Add LootTableLoadEvent, methods on LootPool/LootTable#113

Merged
TheGlitch76 merged 9 commits intoPatchworkMC:masterfrom
kitlith:loottableload
Jul 21, 2020
Merged

Add LootTableLoadEvent, methods on LootPool/LootTable#113
TheGlitch76 merged 9 commits intoPatchworkMC:masterfrom
kitlith:loottableload

Conversation

@kitlith
Copy link
Contributor

@kitlith kitlith commented Jul 9, 2020

The mixin to LootManager is messy, and I'm open to alternative ways to doing it, even if it involves doing it in a completely different way from how forge does it. For now, I'm going to get this up so that bikeshedding can happen.

I'm using the "net.patchworkmc.api.*.Forge" pattern for interfaces that describe public methods added by Forge for use by mods in this commit. This is up for bikeshedding.

This is untested other than starting up Minecraft and opening a world. I was originally going to at least use the mod mentioned in #110, but it doesn't appear to have a version for 1.14.4, and I didn't feel like trying to run a 1.15.2 mod through patcher and hoping it worked.

The reason why this PR doesn't simply add/dispatch the LootTableLoadEvent is because many consumers of the event (according to github search) call methods on LootPool and/or LootTable.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

in progress This is being worked on and is not ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants