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

Better island meta data api #1630

Merged
merged 3 commits into from
Jan 3, 2021
Merged

Better island meta data api #1630

merged 3 commits into from
Jan 3, 2021

Conversation

tastybento
Copy link
Member

This improves the previous MetaData API without breaking too much by using the MetaDataAble interface uniformly and making all the appropriate methods return optionals instead of nulls. Implementing classes need only implement the getter and setter for the metadata field. This approach removes a lot of code duplication and unifies the API between Island and User (and Player).

All classes now use the same interface and Optionals. Reduces code
duplication and makes the API the same across the board.
@tastybento tastybento requested a review from BONNe January 3, 2021 17:03
@tastybento tastybento added the Type: Enhancement Improvement or modification which is usually a new feature. label Jan 3, 2021
@tastybento tastybento self-assigned this Jan 3, 2021
Fixed since JavaDocs
@tastybento tastybento merged commit 4f0ef8f into develop Jan 3, 2021
@tastybento tastybento deleted the Better_Island_MetaData_API branch January 3, 2021 19:31
tastybento added a commit to BentoBoxWorld/docs that referenced this pull request Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improvement or modification which is usually a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants