For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/enums/BlockComponentTypes.md.

Enumeration: BlockComponentTypes

block component

Beta

可通过 Block.getComponent 函数访问的方块组件类型。

The types of block components that are accessible via function Block.getComponent.

Enumeration Members

DynamicProperties

实验性

DynamicProperties: "minecraft:dynamic_properties"

Beta


FluidContainer

FluidContainer: "minecraft:fluid_container"

Beta


Instrument

实验性

Instrument: "minecraft:instrument_sound"

Beta


Inventory

Inventory: "minecraft:inventory"

Beta

Remarks

表示世界中方块的库存。用于像箱子这样的方块。

Represents the inventory of a block in the world. Used with blocks like chests.


MapColor

MapColor: "minecraft:map_color"

Beta

Remarks

表示方块在地图上显示时的颜色。

Represents the color of a block when displayed on a map.


Movable

Movable: "minecraft:movable"

Beta

Remarks

表示可以移动的方块(例如活塞)。

Represents a block that can move (such as a piston).


Piston

Piston: "minecraft:piston"

Beta

Remarks

当存在时,此方块具有类似活塞的行为。包含用于发现方块活塞状态的附加属性。

When present, this block has piston-like behavior. Contains additional properties for discovering block piston state.


PrecipitationInteractions

PrecipitationInteractions: "minecraft:precipitation_interactions"

Beta

Remarks

表示方块与降水(如雨或雪)的交互方式。

Represents a how a block interacts with precipitation (such as rain or snow).


RecordPlayer

RecordPlayer: "minecraft:record_player"

Beta

Remarks

表示可以播放唱片的方块。

Represents a block that can play a record.


RedstoneProducer

RedstoneProducer: "minecraft:redstone_producer"

Beta

Remarks

表示可以输出红石信号的方块。

Represents a block that can output a redstone signal.


Sign

Sign: "minecraft:sign"

Beta

Remarks

表示可以显示文本的方块。

Represents a block that can display text on it.

同领域相关