Skip to content

[API-8] Resource Management#2135

Closed
mattmess1221 wants to merge 26 commits into
SpongePowered:api-8from
mattmess1221:feature/resources
Closed

[API-8] Resource Management#2135
mattmess1221 wants to merge 26 commits into
SpongePowered:api-8from
mattmess1221:feature/resources

Conversation

@mattmess1221
Copy link
Copy Markdown
Contributor

@mattmess1221 mattmess1221 commented Jun 28, 2020

Common

It's been nearly 3 years since I opened #1706, so here's starting fresh on a new branch with mostly new code.

The only thing I don't like is PackDiscoverers. That part isn't critical to resources, so we can remove it and do it for another time if we're short on time.

I'm also not sure if we need a separate event for registering reload listeners. We may be able to get away with having them be registered during ServerAboutToStartEvent. Input is appreciated.

I did most of this a few months ago. I don't remember all the specifics.
@Zidane Zidane changed the title [API-8] Resource api [API-8] Resource Management Jul 2, 2020
@Zidane Zidane added the api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) label Jul 2, 2020
@Zidane Zidane added this to the Revision 8.0 milestone Jul 2, 2020
Comment thread src/main/java/org/spongepowered/api/event/resource/PackEvent.java Outdated
/**
* Register event for client resources.
*/
interface Client extends RegisterReloadListener {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the above, a generic engine event.

If lifecycle, put it there along with the above.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't consider it a lifecycle event. It's just a specific event that does a specific task once at a specific time during init.

Comment thread src/main/java/org/spongepowered/api/event/resource/PackEvent.java Outdated
Comment thread src/main/java/org/spongepowered/api/event/resource/PackEvent.java Outdated
Comment thread src/main/java/org/spongepowered/api/event/resource/ResourceEvent.java Outdated
@mattmess1221 mattmess1221 force-pushed the feature/resources branch 2 times, most recently from ab2c194 to de0c057 Compare December 13, 2020 17:30
@Zidane
Copy link
Copy Markdown
Member

Zidane commented Sep 5, 2021

Closing in favor of https://github.com/SpongePowered/SpongeAPI/tree/feature/resources

Thank you for all your work on this Killjoy.

@Zidane Zidane closed this Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) status: needs updating

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants