Skip to content

Windfarer Integration - #63

Open
DerToaster98 wants to merge 53 commits into
Intybyte:masterfrom
TTE-DevTeam:TTE-Compat
Open

DerToaster98 wants to merge 53 commits into
Intybyte:masterfrom
TTE-DevTeam:TTE-Compat

Conversation

@DerToaster98

Copy link
Copy Markdown

Adds integration code for the Windfarer Movecraft derivate.

Needs to be tested, but it should work in theory. Sadly due to the fact that Movecraft and Windfarer share certain classes, a few little ugly workarounds are necessary.

Let me know what you think of it.

@Intybyte Intybyte left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

A few nitpicks, also after you did testing let me know if everything works as expected, if yes I will merge, but not sure how much i can upkeep this section as i don't know your plugin like movecraft

Comment thread cannons-bukkit/pom.xml Resolved
@DerToaster98

Copy link
Copy Markdown
Author

A few nitpicks, also after you did testing let me know if everything works as expected, if yes I will merge, but not sure how much i can upkeep this section as i don't know your plugin like movecraft

Thank you for the review. I will begin with testing once your nitpicks have been adressed. As for maintenance, personally i think Movecraft doesn't have that much of a future, as far as I can tell from writing the integration here, Windfarer behaves mostly similar to Movecraft. I wrote the integration to make use of newer APIs and to make it more performant with Windfarer.

@Intybyte Intybyte left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

More nitpicks after another review, after those it should be fine codewise

@Intybyte

Copy link
Copy Markdown
Owner

does this close #62 ? so i can link it

@DerToaster98

Copy link
Copy Markdown
Author

does this close #62 ? so i can link it

it potentially does, i have contact to that person, so, once i got cannons to build, i'll give them a test build as well

@DerToaster98
DerToaster98 requested a review from Intybyte October 10, 2026 16:42
@sonarqubecloud

Copy link
Copy Markdown

@Intybyte Intybyte left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

A bit curious about your serialize/deserialize.

The remaining sonarqube warnings are useless whining so it is ready to merge, the code looks good

I just need to find the time to test it with classic movecraft, so users that are using that don't experience problems, unless you already did it during the testing session

@DerToaster98

Copy link
Copy Markdown
Author

A bit curious about your serialize/deserialize.

The remaining sonarqube warnings are useless whining so it is ready to merge, the code looks good

I just need to find the time to test it with classic movecraft, so users that are using that don't experience problems, unless you already did it during the testing session

Sounds good.

Deserialize => Loading code for loading this general object from a YAML file. In windfarer and addons we make more or less heavy use of Bukkit's serialization API as it makes stuff more readable for our taste.

Serialize => at the moment this is not used, but needed for future features such as writing crafts to files or database and reading them from that (serializing it's type is also part of this).

The "clone" function in CraftTypeProperties is used when a craft makes changes to it's own "pseudo copy" of it's crafttype. That's API that can be used by third party addons or Windfarer itself to modify craft-properties on a per-craft-instance basis, one of our developers wanted to be able to do that.

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