Skip to content

Small updates to project structure#4640

Open
gustovafing wants to merge 17 commits into1.20.1from
gus/filesystem
Open

Small updates to project structure#4640
gustovafing wants to merge 17 commits into1.20.1from
gus/filesystem

Conversation

@gustovafing
Copy link
Member

What

  • Move item behaviours to a dedicated folder
  • Move some item classes from api to common
  • Get rid of forge/ folder, rename Forge(Client/Common)EventListener to (Client/Common)EventListener
  • move GTCapability file from api/capability/forge to api/capability
  • Remove some files specific to forge fluids and move them into main fluid logic as the logic is the same on forge/neoforge.
  • Move some files in specific forge/ folders to be in their parent folders where there is no difference in api between forge/neoforge

@gustovafing gustovafing requested a review from a team as a code owner February 15, 2026 22:00
@github-actions github-actions bot added 1.20.1 Tests: Failed Game Tests have failed on this PR labels Feb 15, 2026
@gustovafing gustovafing added type: refactor Suggestion to refactor a section of code Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Feb 15, 2026
@github-actions github-actions bot added Tests: Passed Game Tests have passed on this PR and removed Tests: Failed Game Tests have failed on this PR labels Feb 15, 2026
@github-actions github-actions bot added Tests: Failed Game Tests have failed on this PR and removed Tests: Passed Game Tests have passed on this PR labels Feb 15, 2026
@github-actions github-actions bot added Tests: Passed Game Tests have passed on this PR and removed Tests: Failed Game Tests have failed on this PR labels Feb 16, 2026

@MethodsReturnNonnullByDefault
@ParametersAreNonnullByDefault
public abstract class GTFluidImpl extends GTFluid implements IForgeFluid {
Copy link
Member

Choose a reason for hiding this comment

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

how come this was deleted, dont we still use it for our fluids?

Copy link
Member

Choose a reason for hiding this comment

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

oh, yea the 1.21 fluid migration should go into a separate PR

import com.gregtechceu.gtceu.common.entity.GTBoat;
import com.gregtechceu.gtceu.common.item.*;
import com.gregtechceu.gtceu.common.item.armor.*;
import com.gregtechceu.gtceu.common.item.behavior.*;
Copy link
Member

Choose a reason for hiding this comment

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

we dont need the other 2 imports if we import everything in the package :bz_reading:


import java.util.Locale;

public class TagFixer {
Copy link
Member

Choose a reason for hiding this comment

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

how come this was deleted?

Copy link
Member Author

Choose a reason for hiding this comment

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

never used, plus the fix is does is for an ancient gt version and doesn't even do anything anymore

import lombok.experimental.Accessors;

@Accessors(fluent = true)
public class CableData implements IAttachData {
Copy link
Member

Choose a reason for hiding this comment

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

how come this was deleted?

}

@SubscribeEvent
public static void addAlloyBlastProperties(PostMaterialEvent event) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe? moving the alloy blast event back to common event listener should be its own pr

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

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. Tests: Passed Game Tests have passed on this PR type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants