ContainerSlot
¶
文档版本:1.21.60.21
ContainerSlot
类。script_api.minecraft/server.containerslot.description
属性¶
amount
amount
:int32
- script_api.minecraft/server.containerslot.amount.description
isStackable
isStackable
:boolean
- script_api.minecraft/server.containerslot.isstackable.description
keepOnDeath
keepOnDeath
:boolean
- script_api.minecraft/server.containerslot.keepondeath.description
lockMode
lockMode
:ItemLockMode
- script_api.minecraft/server.containerslot.lockmode.description
maxAmount
maxAmount
:int32
- script_api.minecraft/server.containerslot.maxamount.description
nameTag
nameTag
:string
|undefined
- script_api.minecraft/server.containerslot.nametag.description
type
type
:ItemType
- script_api.minecraft/server.containerslot.type.description
typeId
typeId
:string
- script_api.minecraft/server.containerslot.typeid.description
方法¶
clearDynamicProperties
script_api.minecraft/server.containerslot.cleardynamicproperties.description
- 返回值:
void
- script_api.minecraft/server.containerslot.cleardynamicproperties.return
getCanDestroy
script_api.minecraft/server.containerslot.getcandestroy.description
- 返回值:
string[]
- script_api.minecraft/server.containerslot.getcandestroy.return
getCanPlaceOn
script_api.minecraft/server.containerslot.getcanplaceon.description
- 返回值:
string[]
- script_api.minecraft/server.containerslot.getcanplaceon.return
getDynamicProperty
script_api.minecraft/server.containerslot.getdynamicproperty.description
identifier
:string
- script_api.minecraft/server.containerslot.getdynamicproperty.identifier.description
- 返回值:
boolean
|double
|float
|string
|Vector3
|undefined
- script_api.minecraft/server.containerslot.getdynamicproperty.return
getDynamicPropertyIds
script_api.minecraft/server.containerslot.getdynamicpropertyids.description
- 返回值:
string[]
- script_api.minecraft/server.containerslot.getdynamicpropertyids.return
getDynamicPropertyTotalByteCount
script_api.minecraft/server.containerslot.getdynamicpropertytotalbytecount.description
- 返回值:
int32
- script_api.minecraft/server.containerslot.getdynamicpropertytotalbytecount.return
getItem
script_api.minecraft/server.containerslot.getitem.description
- 返回值:
ItemStack
|undefined
- script_api.minecraft/server.containerslot.getitem.return
getLore
script_api.minecraft/server.containerslot.getlore.description
- 返回值:
string[]
- script_api.minecraft/server.containerslot.getlore.return
getTags
script_api.minecraft/server.containerslot.gettags.description
- 返回值:
string[]
- script_api.minecraft/server.containerslot.gettags.return
hasItem
script_api.minecraft/server.containerslot.hasitem.description
- 返回值:
boolean
- script_api.minecraft/server.containerslot.hasitem.return
hasTag
script_api.minecraft/server.containerslot.hastag.description
tag
:string
- script_api.minecraft/server.containerslot.hastag.tag.description
- 返回值:
boolean
- script_api.minecraft/server.containerslot.hastag.return
isStackableWith
script_api.minecraft/server.containerslot.isstackablewith.description
itemStack
:ItemStack
- script_api.minecraft/server.containerslot.isstackablewith.itemstack.description
- 返回值:
boolean
- script_api.minecraft/server.containerslot.isstackablewith.return
isValid
script_api.minecraft/server.containerslot.isvalid.description
- 返回值:
boolean
- script_api.minecraft/server.containerslot.isvalid.return
setCanDestroy
script_api.minecraft/server.containerslot.setcandestroy.description
blockIdentifiers
?:string[]
=null
- script_api.minecraft/server.containerslot.setcandestroy.blockidentifiers.description
- 返回值:
void
- script_api.minecraft/server.containerslot.setcandestroy.return
setCanPlaceOn
script_api.minecraft/server.containerslot.setcanplaceon.description
blockIdentifiers
?:string[]
=null
- script_api.minecraft/server.containerslot.setcanplaceon.blockidentifiers.description
- 返回值:
void
- script_api.minecraft/server.containerslot.setcanplaceon.return
setDynamicProperty
script_api.minecraft/server.containerslot.setdynamicproperty.description
identifier
:string
- script_api.minecraft/server.containerslot.setdynamicproperty.identifier.description
value
?:boolean
|double
|float
|string
|Vector3
=null
- script_api.minecraft/server.containerslot.setdynamicproperty.value.description
- 返回值:
void
- script_api.minecraft/server.containerslot.setdynamicproperty.return
setItem
script_api.minecraft/server.containerslot.setitem.description
itemStack
?:ItemStack
=null
- script_api.minecraft/server.containerslot.setitem.itemstack.description
- 返回值:
void
- script_api.minecraft/server.containerslot.setitem.return
setLore
script_api.minecraft/server.containerslot.setlore.description
loreList
?:string[]
=null
- script_api.minecraft/server.containerslot.setlore.lorelist.description
- 返回值:
void
- script_api.minecraft/server.containerslot.setlore.return