Skip to content

Conversation

@8s2
Copy link
Contributor

@8s2 8s2 commented Oct 18, 2025

Adds a registry for firework explosion types for items when crafting a firework star.

Copy link
Contributor

@ekulxam ekulxam left a comment

Choose a reason for hiding this comment

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

Looks good, just left some nit comments.

/**
* A registry for the {@link FireworkExplosionComponent.Type} of an item for the {@link FireworkStarRecipe}.
*/
public final class FireworkStarExplosionTypeRegistry {
Copy link
Contributor

Choose a reason for hiding this comment

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

The name of this class seems misleading, as it appears to be a registry for the crafting recipe's map rather than the actual Type enum. Consider changing this to FireworkStarExplosionTypeRecipeRegistry (although this also seems a bit verbose?).

* @param item the item to register
* @param explosionType the firework explosion type
*/
public static void register(ItemConvertible item, FireworkExplosionComponent.Type explosionType) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe the logic in here should be moved to the impl class, and this method should only be calling a register method in the impl class instead.

@Liam-Broome
Copy link
Contributor

Hi @8s2, I see the PR’s been inactive for a while. I’m interested in helping push it forward.
Are you happy for me to do so? 😄

@sylv256 sylv256 added the enhancement New feature or request label Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants