外观
协议模型:I · 3
选择模型查看构造参数和字段,代码块保留完整模型名称。... 表示可省略的字段,省略时使用该类型的零值。
ItemTagItemDescriptor
继承 Struct。
python
class ItemTagItemDescriptor(_Struct):
Tag: str | StringBytes
def __init__(self, /, *,
Tag: str | StringBytes = ...,
) -> None: ...ItemType
继承 Struct。
python
class ItemType(_Struct):
NetworkID: int
MetadataValue: int
def __init__(self, /, *,
NetworkID: int = ...,
MetadataValue: int = ...,
) -> None: ...ItemType__BlockRuntimeID…workID_bool_
继承 Struct。
python
class ItemType__BlockRuntimeID_int32__Count_uint16__NBTData_map_string_any__CanBePlacedOn___string__CanBreak___string__BlockingTick_int64__HasNetworkID_bool_(_Struct):
ItemType: ItemType
BlockRuntimeID: int
Count: int
NBTData: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
CanBePlacedOn: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
CanBreak: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
BlockingTick: int
HasNetworkID: bool
def __init__(self, /, *,
ItemType: ItemType = ...,
BlockRuntimeID: int = ...,
Count: int = ...,
NBTData: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
CanBePlacedOn: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
CanBreak: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
BlockingTick: int = ...,
HasNetworkID: bool = ...,
) -> None: ...相关字段类型:ItemType。
ItemUsedEvent
继承 Struct。
python
class ItemUsedEvent(_Struct):
ItemID: int
ItemAux: int
UseMethod: int
UseCount: int
def __init__(self, /, *,
ItemID: int = ...,
ItemAux: int = ...,
UseMethod: int = ...,
UseCount: int = ...,
) -> None: ...ItemWithSlot
继承 Struct。
python
class ItemWithSlot(_Struct):
Slot: int
Item: Item
def __init__(self, /, *,
Slot: int = ...,
Item: Item = ...,
) -> None: ...相关字段类型:Item。