tutorial:events
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:events [2020/02/17 18:36] – Fix indentation jamieswhiteshirt | tutorial:events [2020/03/29 15:46] – event -> listener. Highly misleading name, the listener is not an event jamieswhiteshirt | ||
---|---|---|---|
Line 20: | Line 20: | ||
Event< | Event< | ||
(listeners) -> (player, sheep) -> { | (listeners) -> (player, sheep) -> { | ||
- | for (SheepShearCallback | + | for (SheepShearCallback |
- | ActionResult result = event.interact(player, | + | ActionResult result = listener.interact(player, |
if(result != ActionResult.PASS) { | if(result != ActionResult.PASS) { | ||
return result; | return result; |
tutorial/events.txt · Last modified: 2021/05/28 00:31 by 127.0.0.1