Skip to content

Consistent catalog builders + move recipe registration#1952

Merged
Cybermaxke merged 1 commit into
bleedingfrom
consistent-catalog-builders
Jan 26, 2019
Merged

Consistent catalog builders + move recipe registration#1952
Cybermaxke merged 1 commit into
bleedingfrom
consistent-catalog-builders

Conversation

@Cybermaxke
Copy link
Copy Markdown
Contributor

@Cybermaxke Cybermaxke commented Jan 20, 2019

API | Common | Forge

Updates PR #1870 for bleeding.

Comment thread src/main/java/org/spongepowered/api/CatalogKey.java Outdated
Comment thread src/main/java/org/spongepowered/api/util/CatalogBuilder.java
@Cybermaxke Cybermaxke self-assigned this Jan 20, 2019
@Cybermaxke Cybermaxke changed the title Consistent catalog builders. Consistent catalog builders + move recipe registration Jan 20, 2019
@Cybermaxke Cybermaxke force-pushed the consistent-catalog-builders branch from ed6d40c to 6eda763 Compare January 22, 2019 22:38
Copy link
Copy Markdown
Member

@gabizou gabizou left a comment

Choose a reason for hiding this comment

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

Seeing as we're royally breaking API and avoiding our deprecation policy for API 8, this change is fine. I wouldn't be opposed to having the legacy interface heavily deprecated and legacy methods in some places deprecated for easier transition, but the changes themselves are good.

Comment thread src/main/java/org/spongepowered/api/CatalogKey.java Outdated
* determine which plugin was used to construct the {@link CatalogType}.</p>
*
* @return The built catalog type
* @throws IllegalStateException If not all required options were specified
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.

Throws another exception if this is being called asynchronously as the CauseStackManager cannot be accessed off main thread(s) (when client is introduced, client thread will have a cause stack manager as well as the server thread).

May want to just add documentation for the overriding methods in various builders that outline the "requirements" for this build to succeed and not fail.

@Cybermaxke Cybermaxke force-pushed the consistent-catalog-builders branch from a2781c1 to bacb7d1 Compare January 26, 2019 14:27
…the register event.

- Furnace recipe is now a catalog type.
- Remove crafting recipe catalog.
- Improve game registry event and additional catalog registry javadoc.
@Cybermaxke Cybermaxke force-pushed the consistent-catalog-builders branch from bacb7d1 to c44c395 Compare January 26, 2019 17:37
@Cybermaxke Cybermaxke merged commit c44c395 into bleeding Jan 26, 2019
@Cybermaxke Cybermaxke deleted the consistent-catalog-builders branch January 27, 2019 17:56
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) branch: bleeding status: needs testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants