zh_cn:tutorial:blockentity
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
zh_cn:tutorial:blockentity [2022/08/08 04:26] – solidblock | zh_cn:tutorial:blockentity [2022/12/16 02:14] – [注册你的方块实体] solidblock | ||
---|---|---|---|
Line 28: | Line 28: | ||
<code java> | <code java> | ||
public static final BlockEntityType< | public static final BlockEntityType< | ||
- | | + | |
new Identifier(" | new Identifier(" | ||
FabricBlockEntityTypeBuilder.create(DemoBlockEntity:: | FabricBlockEntityTypeBuilder.create(DemoBlockEntity:: | ||
Line 131: | Line 131: | ||
} | } | ||
</ | </ | ||
- | 在你的 '' | + | 在你的 '' |
<code java> | <code java> | ||
public class DemoBlockEntity extends BlockEntity { | public class DemoBlockEntity extends BlockEntity { |
zh_cn/tutorial/blockentity.txt · Last modified: 2023/09/03 01:37 by wjz_p