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

Add String based alternatives to builders that use Aspects #60

Merged
merged 5 commits into from
Jun 24, 2023

Conversation

Testure
Copy link
Contributor

@Testure Testure commented Jun 18, 2023

Allows you to use .aspect("aer", 5) instead of .aspect(aspect("aer") * 5) for convenience.

Copy link
Collaborator

@WaitingIdly WaitingIdly left a comment

Choose a reason for hiding this comment

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

could you add these new options to the example file?

Copy link
Member

@brachy84 brachy84 left a comment

Choose a reason for hiding this comment

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

Unlike the aspect bracket handler, this doesnt do any validation if the aspect really exists.

@brachy84
Copy link
Member

Now you completely changed the aspect bracket handler. An exception should only be thrown if there's an invalid amount of arguments or if the arguments have the wrong type. Otherwise it should return null. The bracket handler will then automatically handle the error message.

@brachy84 brachy84 merged commit b26fd14 into CleanroomMC:master Jun 24, 2023
@Testure Testure deleted the aspect branch June 28, 2023 08:44
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.

3 participants