Skip to content

Feature/api split#520

Open
AlphaMode wants to merge 14 commits intomainfrom
feature/api-split
Open

Feature/api split#520
AlphaMode wants to merge 14 commits intomainfrom
feature/api-split

Conversation

@AlphaMode
Copy link
Member

Reintroduces the API has a separate source set of the mod similar to how the old GC-API worked.
Currently the API doesn't have its own mod id/fmj.
However this may be changed depending on future API plans.
My main reason for creating this is to prevent accidental GC Mod code in the API, and also allow addons to use the api without depending on GC itself

AlphaMode and others added 14 commits August 29, 2025 10:32
# Conflicts:
#	src/api/java/dev/galacticraft/api/accessor/CryogenicAccessor.java
#	src/api/java/dev/galacticraft/api/registry/AcidTransformItemRegistry.java
#	src/api/java/dev/galacticraft/impl/internal/block/ExtinguishableBlockRegistryImpl.java
#	src/main/java/dev/galacticraft/impl/internal/block/ExtinguishableBlockRegistryImpl.java
#	src/main/java/dev/galacticraft/impl/internal/registry/ExtinguishableBlockRegistryImpl.java
#	src/main/java/dev/galacticraft/mod/GalacticraftClient.java
#	src/main/java/dev/galacticraft/mod/client/render/entity/rocket/RocketEntityRenderer.java
#	src/main/java/dev/galacticraft/mod/events/GCEventHandlers.java
#	src/main/java/dev/galacticraft/mod/misc/footprint/Footprint.java
#	src/main/java/dev/galacticraft/mod/mixin/EntityMixin.java
#	src/main/resources/fabric.mod.json
chore: add javadoc to OxygenProvidingBlock
chore: move lookup registration out of entity and block classes
Copy link
Member

Choose a reason for hiding this comment

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

This looks like it is still WIP, so maybe it should be saved for a future PR.

Copy link
Member

Choose a reason for hiding this comment

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

This should probably be removed from this PR and maybe included in a separate PR later on.

Comment on lines +84 to +90
// RocketLayout layout = entity.getRocketLayout();
// List<Holder<? extends RocketPart<?, ?>>> parts = layout.parts().stream().map(eitherHolder -> maybeGet(entity, eitherHolder));
//
// for (EitherHolder<? extends RocketPart<?, ?>> part : layout.parts()) {
// part.
// }

Copy link
Member

Choose a reason for hiding this comment

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

Is this still needed?

Comment on lines +703 to +707
// @Override
// public @NotNull RocketLayout getRocketLayout() {
// return getRocketData().layout();
// }

Copy link
Member

Choose a reason for hiding this comment

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

Is this still needed?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants