zh_cn:tutorial:extendedscreenhandler
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
zh_cn:tutorial:extendedscreenhandler [2022/02/10 13:26] – 注册我们的 ScreenHandler timothy_starman | zh_cn:tutorial:extendedscreenhandler [2022/02/10 13:32] (current) – Result timothy_starman | ||
---|---|---|---|
Line 7: | Line 7: | ||
由于 Block 类根本不需要更改,我们将其留在这里。 | 由于 Block 类根本不需要更改,我们将其留在这里。 | ||
- | 我们的方块实体现在实现了 | + | 我们的方块实体现在实现了 |
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
Line 164: | Line 164: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ====== 结果 ====== | ||
+ | 您现在已经了解了如何在 ScreenHandler 打开时传输数据。 在图像中您可以看到结果:方块的标题现在是它的位置。 | ||
+ | 请注意,这只是一个演示,还有更简单的方法可以将位置设置为标题。 | ||
+ | |||
+ | 您可能想知道:// | ||
+ | 这可以通过在屏幕打开后发送自定义数据包来实现。 (see: [[tutorial: | ||
+ | 您可能还想看看'' | ||
+ | |||
+ | 如果您只想同步整数值,您可以使用'' | ||
+ | |||
+ | {{: | ||
+ | |||
zh_cn/tutorial/extendedscreenhandler.1644499598.txt.gz · Last modified: 2022/02/10 13:26 by timothy_starman