跳转至

BlockPermutation

文档版本:1.21.0.24

BlockPermutation类。script_api.mojang-minecraft.blockpermutation.description

属性

type
read-only type: BlockType;
typeBlockType
script_api.mojang-minecraft.blockpermutation.type.description

方法

getAllProperties

script_api.mojang-minecraft.blockpermutation.getallproperties.description

getAllProperties(): IBlockProperty[]
返回值:IBlockProperty[]
script_api.mojang-minecraft.blockpermutation.getallproperties.return
getProperty

script_api.mojang-minecraft.blockpermutation.getproperty.description

getProperty(propertyName: string): IBlockProperty | undefined
propertyNamestring
script_api.mojang-minecraft.blockpermutation.getproperty.propertyname.description
返回值:IBlockProperty|undefined
script_api.mojang-minecraft.blockpermutation.getproperty.return
getTags

script_api.mojang-minecraft.blockpermutation.gettags.description

getTags(): string[]
返回值:string[]
script_api.mojang-minecraft.blockpermutation.gettags.return
hasTag

script_api.mojang-minecraft.blockpermutation.hastag.description

hasTag(tag: string): boolean
tagstring
script_api.mojang-minecraft.blockpermutation.hastag.tag.description
返回值:boolean
script_api.mojang-minecraft.blockpermutation.hastag.return