zh_cn:tutorial:blockentity
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| zh_cn:tutorial:blockentity [2025/04/01 12:17] – [注册方块和方块实体] solidblock | zh_cn:tutorial:blockentity [2025/04/01 12:20] (current) – [方块实体刻] solidblock | ||
|---|---|---|---|
| Line 125: | Line 125: | ||
| 在你的 '' | 在你的 '' | ||
| <code java DemoBlockEntity.java> | <code java DemoBlockEntity.java> | ||
| - | public class DemoBlockEntity extends BlockEntity { | + | public class DemoBlockEntity extends BlockEntity |
| [...] | [...] | ||
| | | ||
| - | public static void tick(World world, BlockPos pos, BlockState state, DemoBlockEntity | + | |
| + | | ||
| [...] | [...] | ||
| } | } | ||
zh_cn/tutorial/blockentity.1743509853.txt.gz · Last modified: 2025/04/01 12:17 by solidblock