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

Implement SizeData #1492

Closed
wants to merge 2 commits into from
Closed

Conversation

parlough
Copy link
Contributor

SpongeAPI | SpongeCommon

Supersedes #402

Implements size data based on Hassan's changes, but with some changes to the API and implementation, including the inclusion of a modified version of his test plugin.

With this PR you can modify the base_size(width) and height, but developers have to keep in mind that this only changes the bounding box, it isn't super reliable, and Sponge(maybe Minecraft idk) limits the max size of a bounding box to 1000.

I am open to changes everywhere, from documentation to functionality, so please give this a good review.

@parlough
Copy link
Contributor Author

parlough commented Sep 7, 2017

I can go ahead and fix these merge conflicts sometime today or tomorrow. If anyone would like to see any other changes please bring them up.

public ImmutableSpongeSizeData(float base, float height, float scale) {
super(ImmutableSizeData.class);

checkArgument(scale > 0, "The base size must be greater than 0.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be base > 0.

@gabizou
Copy link
Member

gabizou commented Dec 2, 2019

This will need to be re-done and re-target api-8. Bleeding is no longer a valid branch.

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

Successfully merging this pull request may close these issues.

None yet

7 participants