Created
May 20, 2013 02:40
-
-
Save windy1/5610145 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quest gatherQuest = Quest.builder() | |
// gather 5 stone for a reward of 19.99 and a message 'Congratulations!' | |
.gather(5) | |
.of(Material.STONE) | |
.withRewardOf(19.99) | |
.withMessage("Congratulations!") | |
.then() | |
// gather 20 dirt for a reward of 5 and a message 'Nice Dirt!' | |
.gather(20) | |
.of(Material.DIRT) | |
.withRewardOf(5) | |
.withMessage("Nice dirt!") | |
.then() | |
.build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment