Block
¶
文档版本:1.21.60.21
Block
类。script_api.mojang-minecraft.block.description
属性¶
dimension
dimension
:Dimension
- script_api.mojang-minecraft.block.dimension.description
id
id
:string
- script_api.mojang-minecraft.block.id.description
isEmpty
isEmpty
:boolean
- script_api.mojang-minecraft.block.isempty.description
isWaterlogged
isWaterlogged
:boolean
- script_api.mojang-minecraft.block.iswaterlogged.description
location
location
:BlockLocation
- script_api.mojang-minecraft.block.location.description
permutation
permutation
:BlockPermutation
- script_api.mojang-minecraft.block.permutation.description
type
type
:BlockType
- script_api.mojang-minecraft.block.type.description
x
x
:int32
- script_api.mojang-minecraft.block.x.description
y
y
:int32
- script_api.mojang-minecraft.block.y.description
z
z
:int32
- script_api.mojang-minecraft.block.z.description
方法¶
getComponent
script_api.mojang-minecraft.block.getcomponent.description
componentName
:string
- script_api.mojang-minecraft.block.getcomponent.componentname.description
- 返回值:
BlockComponent
|undefined
- script_api.mojang-minecraft.block.getcomponent.return
getTags
script_api.mojang-minecraft.block.gettags.description
- 返回值:
string[]
- script_api.mojang-minecraft.block.gettags.return
hasTag
script_api.mojang-minecraft.block.hastag.description
tag
:string
- script_api.mojang-minecraft.block.hastag.tag.description
- 返回值:
boolean
- script_api.mojang-minecraft.block.hastag.return
setPermutation
script_api.mojang-minecraft.block.setpermutation.description
permutation
:BlockPermutation
- script_api.mojang-minecraft.block.setpermutation.permutation.description
- 返回值:
void
- script_api.mojang-minecraft.block.setpermutation.return
setType
script_api.mojang-minecraft.block.settype.description
blockType
:BlockType
- script_api.mojang-minecraft.block.settype.blocktype.description
- 返回值:
void
- script_api.mojang-minecraft.block.settype.return