- 致编者:请牢记我们的域名wiki.mcbe-dev.net!
- 致编者:欢迎加入本Wiki的官方交流QQ群或Discord服务器!
- 基岩版1.19.31现已发布!(了解更多)
- Inner Core现已支持Xbox模组联机!(了解更多)
- 如果您是第一次来到本Wiki,欢迎注册一个账户
- 点击顶部的“编辑”或“编辑源代码”按钮即可编辑当前页面
- 请知悉:在不登录时也可以编辑和新建页面,但是您当前的IP地址会记录在编辑历史中
手冊:@minecraft/server/BlockComponentTypeMap
出自Minecraft基岩版开发Wiki
BlockComponentTypeMap包含了各方塊元件型別的別名映射。
映射[編輯]
別名 | 類別 |
---|---|
inventory | BlockInventoryComponent |
lavaContainer | BlockLavaContainerComponent |
minecraft:inventory | BlockInventoryComponent |
minecraft:lavaContainer | BlockLavaContainerComponent |
minecraft:piston | BlockPistonComponent |
minecraft:potionContainer | BlockPotionContainerComponent |
minecraft:recordPlayer | BlockRecordPlayerComponent |
minecraft:sign | BlockSignComponent |
minecraft:snowContainer | BlockSnowContainerComponent |
minecraft:waterContainer | BlockWaterContainerComponent |
piston | BlockPistonComponent |
potionContainer | BlockPotionContainerComponent |
recordPlayer | BlockRecordPlayerComponent |
sign | BlockSignComponent |
snowContainer | BlockSnowContainerComponent |
waterContainer | BlockWaterContainerComponent |
程式碼[編輯]
type BlockComponentTypeMap = {
'inventory': BlockInventoryComponent;
'lavaContainer': BlockLavaContainerComponent;
'minecraft:inventory': BlockInventoryComponent;
'minecraft:lavaContainer': BlockLavaContainerComponent;
'minecraft:piston': BlockPistonComponent;
'minecraft:potionContainer': BlockPotionContainerComponent;
'minecraft:recordPlayer': BlockRecordPlayerComponent;
'minecraft:sign': BlockSignComponent;
'minecraft:snowContainer': BlockSnowContainerComponent;
'minecraft:waterContainer': BlockWaterContainerComponent;
'piston': BlockPistonComponent;
'potionContainer': BlockPotionContainerComponent;
'recordPlayer': BlockRecordPlayerComponent;
'sign': BlockSignComponent;
'snowContainer': BlockSnowContainerComponent;
'waterContainer': BlockWaterContainerComponent;
};