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 ability to customize ItemStack in build pattern. #45

Closed
wants to merge 4 commits into from

Conversation

@CyR1en
Copy link

commented Aug 8, 2019

Just add the ability to customize the item stack in the build pattern.
I've also made it so that if no ItemStack was provided, it'll just make a default ItemStack

this.insert = Objects.isNull(insert) ? makeDefaultItemStack(text) : insert;

This was my desired build:

new AnvilGUI.Builder().plugin(plugin).onClose(player -> cancel()).onComplete((player, res) -> {
        process(player, res);
        return AnvilGUI.Response.close();
      }).itemStack(item).open(this.sender);

P.S
I did my best to follow your coding conventions, and documented all of the new code that I wrote.
Also, I tend to auto format my code in IntelliJ, so sorry if you notice any difference when it comes to formatting.

@WesJD

This comment has been minimized.

Copy link
Owner

commented Aug 10, 2019

This is an absolutely horrid diff. I cannot see the changes you've made because you've reformatted the entire file. Please fix this.

@CyR1en CyR1en closed this Aug 10, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.