tutorial:events
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:events [2020/06/09 23:16] – formatting changes draylar | tutorial:events [2021/05/28 00:31] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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.1591744571.txt.gz · Last modified: 2020/06/09 23:16 by draylar