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

Added area grouping #55

Merged
merged 14 commits into from
Oct 30, 2024
Merged

Added area grouping #55

merged 14 commits into from
Oct 30, 2024

Conversation

NonSwag
Copy link
Member

@NonSwag NonSwag commented Oct 27, 2024

No description provided.

Refactor the interface to better represent areas bound to multiple regions instead of just intersections. Updated import statements and documentation to reflect this change.
Introduced a `GroupedRegion` class to manage multiple `Region` objects collectively. This class supports basic operations like adding, removing, and querying regions, along with overriding several methods from the `AbstractRegion` class for more tailored functionality.
Renamed IntersectionAreaAdapter to GroupedAreaAdapter for better clarity and updated the associated implementation. This change ensures the naming reflects the functionality more accurately, improving code maintainability.
Replaced CraftIntersectionArea with CraftGroupedArea to better reflect its purpose in managing grouped regions. This includes updating relevant imports and class specifics to the new GroupedRegion type.
Removed the dependency on RegionIntersection and replaced it with GroupedRegion in areaService. This change updates the wrapper registration to use the corresponding CraftGroupedArea class.
Eliminated the unused `TypesAreNotNullByDefault` annotation import to clean up the code. This helps to reduce clutter and improves code readability.
Introduced a new command class `AreaGroupCommand`, enabling the creation, addition, inspection, and removal of grouped areas. This facilitates better management of regionized and grouped areas within the plugin, with appropriate permission checks for each action.
@NonSwag NonSwag self-assigned this Oct 27, 2024
NonSwag and others added 7 commits October 27, 2024 10:43
Removed `net.thenextlvl.core:annotations:2.0.1` from the dependencies in `plugin/build.gradle.kts` as it is no longer needed. This clean-up helps streamline the build process and avoids unnecessary inclusion of unused libraries.
This commit deletes the NamePattern annotation file and several package-info.java files. Additionally, it updates method signatures to include @NotNull annotations for better null safety.
Upgraded the versions of 'net.thenextlvl.core' dependencies in both 'plugin' and 'api' modules. This change ensures the use of the latest features and improvements provided by the updated libraries.
Update method calls for registering type hierarchy adapters to use simplified methods in `LocationAdapter` and `KeyAdapter`. This improves consistency and readability in the `CraftAreaProvider` class.
@NonSwag NonSwag merged commit 00a158a into master Oct 30, 2024
2 checks passed
@NonSwag NonSwag deleted the area-grouping branch October 30, 2024 18:22
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.

1 participant