Skip to content

Change the implementation of transformers#13

Merged
serenibyss merged 5 commits intoGregTechCEu:masterfrom
BraggestSage833:tranformers
Jul 6, 2021
Merged

Change the implementation of transformers#13
serenibyss merged 5 commits intoGregTechCEu:masterfrom
BraggestSage833:tranformers

Conversation

@BraggestSage833
Copy link
Copy Markdown
Contributor

@BraggestSage833 BraggestSage833 commented Jul 3, 2021

What:
Changes the implementation of transformers. If going down all sides but north will be for outputting energy. If going up all sides but the north side will be for inputting energy. Transformer overlays have also been updated to reflect this.

How solved:
Instead of using the method getFrontFacing() and getOpposite() I am using forge directions to decide the sidedness of rendering.

Outcome:
Outputting energy when going down and inputting energy when going up is no longer one sided.

Possible compatibility issue:
With more sides now acting as an output or input. peoples setups may break deepening on previous transformer placements

} else {
Textures.ENERGY_IN_MULTI.renderSided(getFrontFacing(), renderState, translation, PipelineUtil.color(pipeline, GTValues.VC[getTier()]));
Textures.ENERGY_OUT.renderSided(getFrontFacing().getOpposite(), renderState, translation, PipelineUtil.color(pipeline, GTValues.VC[getTier() - 1]));
if (frontFacing == EnumFacing.NORTH) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This code is too messy, we need to cut it down by a lot

@serenibyss
Copy link
Copy Markdown
Member

This PR needs a rebase, it is hard to tell what has actually changed

@serenibyss serenibyss merged commit 41735cd into GregTechCEu:master Jul 6, 2021
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.

3 participants