tutorial:events
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
tutorial:events [2020/06/09 23:16] – formatting changes draylar | tutorial:events [2021/05/28 00:31] – Made event be listener instead, as they should really be the same thing pheonixvx | ||
---|---|---|---|
Line 37: | Line 37: | ||
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
(listeners) -> (player, sheep) -> { | (listeners) -> (player, sheep) -> { | ||
- | for (SheepShearCallback | + | for (SheepShearCallback |
</ | </ | ||
We then call our method (in this case, '' | We then call our method (in this case, '' | ||
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
- | ActionResult result = event.interact(player, | + | ActionResult result = listener.interact(player, |
</ | </ | ||
If the listener says we have to cancel ('' | If the listener says we have to cancel ('' |
tutorial/events.txt · Last modified: 2021/05/28 00:31 by 127.0.0.1