Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.20.2] Add an event to register custom sprite source types #77

Conversation

Minecraftschurli
Copy link
Contributor

@Minecraftschurli Minecraftschurli commented Aug 3, 2023

This PR makes it possible to register custom SpriteSource types and load custom SpriteContents from them.

@CLAassistant
Copy link

CLAassistant commented Aug 3, 2023

CLA assistant check
All committers have signed the CLA.

@Minecraftschurli Minecraftschurli changed the title Add an event to register custom sprite source types [1.20.1] Add an event to register custom sprite source types Aug 3, 2023
@sciwhiz12 sciwhiz12 added enhancement New (or improvement to existing) feature or request 1.20 Targeted at Minecraft 1.20 labels Aug 3, 2023
Copy link
Member

@Technici4n Technici4n left a comment

Choose a reason for hiding this comment

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

This should also have some sort of test to make checking that this works now and in the future possible.

@Minecraftschurli
Copy link
Contributor Author

The event being on the forge bus is intentional, I asked on discord and got the answer from @TheCurle that the forge bus is the correct one and most of the others are on the wrong bus (see here)

XFactHD
XFactHD previously approved these changes Aug 31, 2023
@Minecraftschurli Minecraftschurli self-assigned this Oct 31, 2023
@Minecraftschurli Minecraftschurli force-pushed the feature/custom-sprite-source-types branch from 6cdb716 to 11db25c Compare November 1, 2023 16:52
@Minecraftschurli Minecraftschurli changed the title [1.20.1] Add an event to register custom sprite source types [1.20.2] Add an event to register custom sprite source types Nov 1, 2023
@Minecraftschurli Minecraftschurli force-pushed the feature/custom-sprite-source-types branch from 11db25c to 3bc2c25 Compare November 1, 2023 17:37
Copy link
Member

@Technici4n Technici4n left a comment

Choose a reason for hiding this comment

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

Can you also update the CustomTASTest testmod with this PR?

Copy link
Contributor

@ChampionAsh5357 ChampionAsh5357 left a comment

Choose a reason for hiding this comment

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

Just some internal markings and it looks good to go. Figured they should be added since we shouldn't be firing this event outside of the NeoForged startup.

Copy link
Member

@XFactHD XFactHD left a comment

Choose a reason for hiding this comment

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

Two rather nitpicky things, but other than that it works great in my testing :shipit:

XFactHD
XFactHD previously approved these changes Nov 28, 2023
Copy link
Contributor

@marchermans marchermans left a comment

Choose a reason for hiding this comment

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

See comments, plus: This PR needs documentation in the PR message, what can you do with these changes, how is it supposed to be used etc.

Copy link
Contributor

@ChampionAsh5357 ChampionAsh5357 left a comment

Choose a reason for hiding this comment

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

Mainly documentation issues.

Copy link
Contributor

@ChampionAsh5357 ChampionAsh5357 left a comment

Choose a reason for hiding this comment

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

Sure, this is good enough for now.

@Minecraftschurli Minecraftschurli merged commit 2f87365 into neoforged:1.20.x Nov 29, 2023
2 checks passed
@Minecraftschurli Minecraftschurli deleted the feature/custom-sprite-source-types branch November 30, 2023 08:00
Xing-C added a commit to Xing-C/NeoForge that referenced this pull request Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.20 Targeted at Minecraft 1.20 enhancement New (or improvement to existing) feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants