Skip to content

Instantly share code, notes, and snippets.

@windy1
Created May 20, 2013 02:40
Show Gist options
  • Save windy1/5610145 to your computer and use it in GitHub Desktop.
Save windy1/5610145 to your computer and use it in GitHub Desktop.
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