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

API: New Clipboard helper methods #2970

Closed

Conversation

JackerAcid
Copy link

@JackerAcid JackerAcid commented Oct 30, 2024

Overview

Make Clipboards easier to use and less boilerplate.

Description

Adds getCenter(), getDiagonal(), getDiagonalSq(), getRadius(), and getRadiusSq() methods to com.sk89q.worldedit.extent.clipboard.Clipboard.

@JackerAcid JackerAcid requested a review from a team as a code owner October 30, 2024 15:05
@dordsor21
Copy link
Member

dordsor21 commented Oct 30, 2024

Why is this needed? Isn't this something that would be better suited for being in CuboidRegion anyway? The diagonal method is clearly for a very specific use case and does not adequately describe which diagonal it is for (there are three) (and I cannot think of any good way of implementing anything proper anyway)

@JackerAcid JackerAcid closed this Oct 30, 2024
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