外观
协议模型:I · 2
选择模型查看构造参数和字段,代码块保留完整模型名称。... 表示可省略的字段,省略时使用该类型的零值。
ItemEntry_ItemInstanceItemInstance_ItemInstance__InventoryS…ndowID_byte_ItemInstance__struct_Sou…temInstance_ItemInstance__struct_Use…temInstance_ItemInstance__struct_Win…temInstance_ItemInstance__struct_Win…temInstance_ItemRegistryItemStackItemStack_ItemStack__Block_string_ItemStack__Block_string_…lock_string_ItemStack__GroupIndex_uint32_ItemStack__struct_StackN…l_ItemStack_ItemStack__TimesCrafted_byte_ItemStackRequestItemStackRequest_ItemStackResponseItemStackResponse_
ItemEntry_
继承 Struct。
python
class ItemEntry_(_Struct):
Items: list[ItemEntry] | tuple[ItemEntry, ...] | None
def __init__(self, /, *,
Items: list[ItemEntry] | tuple[ItemEntry, ...] | None = ...,
) -> None: ...相关字段类型:ItemEntry。
ItemInstance
继承 Struct。
python
class ItemInstance(_Struct):
StackNetworkID: int
Stack: ItemStack
def __init__(self, /, *,
StackNetworkID: int = ...,
Stack: ItemStack = ...,
) -> None: ...相关字段类型:ItemStack。
ItemInstance_
继承 Struct。
python
class ItemInstance_(_Struct):
EntityRuntimeID: int
Helmet: ItemInstance
Chestplate: ItemInstance
Leggings: ItemInstance
Boots: ItemInstance
Body: ItemInstance
def __init__(self, /, *,
EntityRuntimeID: int = ...,
Helmet: ItemInstance = ...,
Chestplate: ItemInstance = ...,
Leggings: ItemInstance = ...,
Boots: ItemInstance = ...,
Body: ItemInstance = ...,
) -> None: ...相关字段类型:ItemInstance。
ItemInstance__InventoryS…ndowID_byte_
继承 Struct。
python
class ItemInstance__InventorySlot_byte__HotBarSlot_byte__WindowID_byte_(_Struct):
EntityRuntimeID: int
NewItem: ItemInstance
InventorySlot: int
HotBarSlot: int
WindowID: int
def __init__(self, /, *,
EntityRuntimeID: int = ...,
NewItem: ItemInstance = ...,
InventorySlot: int = ...,
HotBarSlot: int = ...,
WindowID: int = ...,
) -> None: ...相关字段类型:ItemInstance。
ItemInstance__struct_Sou…temInstance_
继承 Struct。
python
class ItemInstance__struct_SourceType_uint32__WindowID_int32__SourceFlags_uint32__InventorySlot_uint32__OldItem_github_com_OmineDev_neomega_core_minecraft_protocol_ItemInstance__NewItem_github_com_OmineDev_neomega_core_minecraft_protocol_ItemInstance_(_Struct):
SourceType: int
WindowID: int
SourceFlags: int
InventorySlot: int
OldItem: ItemInstance
NewItem: ItemInstance
def __init__(self, /, *,
SourceType: int = ...,
WindowID: int = ...,
SourceFlags: int = ...,
InventorySlot: int = ...,
OldItem: ItemInstance = ...,
NewItem: ItemInstance = ...,
) -> None: ...相关字段类型:ItemInstance。
ItemInstance__struct_Use…temInstance_
继承 Struct。
python
class ItemInstance__struct_UsedItemID_int16__UseMethod_int32__UsedItemData_github_com_OmineDev_neomega_core_minecraft_protocol_ItemInstance_(_Struct):
UsedItemID: int
UseMethod: int
UsedItemData: ItemInstance
def __init__(self, /, *,
UsedItemID: int = ...,
UseMethod: int = ...,
UsedItemData: ItemInstance = ...,
) -> None: ...相关字段类型:ItemInstance。
ItemInstance__struct_Win…temInstance_
继承 Struct。
python
class ItemInstance__struct_WindowID_uint32__Content___github_com_OmineDev_neomega_core_minecraft_protocol_ItemInstance__Container_github_com_OmineDev_neomega_core_minecraft_protocol_FullContainerName__StorageItem_github_com_OmineDev_neomega_core_minecraft_protocol_ItemInstance_(_Struct):
WindowID: int
Content: list[ItemInstance] | tuple[ItemInstance, ...] | None
Container: FullContainerName
StorageItem: ItemInstance
def __init__(self, /, *,
WindowID: int = ...,
Content: list[ItemInstance] | tuple[ItemInstance, ...] | None = ...,
Container: FullContainerName = ...,
StorageItem: ItemInstance = ...,
) -> None: ...相关字段类型:FullContainerName、ItemInstance。
ItemInstance__struct_Win…temInstance_
继承 Struct。
python
class ItemInstance__struct_WindowID_uint32__Slot_uint32__Container_github_com_OmineDev_neomega_core_minecraft_protocol_FullContainerName__StorageItem_github_com_OmineDev_neomega_core_minecraft_protocol_ItemInstance__NewItem_github_com_OmineDev_neomega_core_minecraft_protocol_ItemInstance_(_Struct):
WindowID: int
Slot: int
Container: FullContainerName
StorageItem: ItemInstance
NewItem: ItemInstance
def __init__(self, /, *,
WindowID: int = ...,
Slot: int = ...,
Container: FullContainerName = ...,
StorageItem: ItemInstance = ...,
NewItem: ItemInstance = ...,
) -> None: ...相关字段类型:FullContainerName、ItemInstance。
ItemRegistry
继承 Packet。
python
class ItemRegistry(_Packet):
packet_id: ClassVar[int] = 162
packet_name: ClassVar[str] = 'ItemRegistry'
Items: list[ItemEntry] | tuple[ItemEntry, ...] | None
def __init__(self, /, *,
Items: list[ItemEntry] | tuple[ItemEntry, ...] | None = ...,
) -> None: ...相关字段类型:ItemEntry。
ItemStack
继承 Struct。
python
class ItemStack(_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。
ItemStack_
继承 Struct。
python
class ItemStack_(_Struct):
Category: int
Name: str | StringBytes
Icon: ItemStack
def __init__(self, /, *,
Category: int = ...,
Name: str | StringBytes = ...,
Icon: ItemStack = ...,
) -> None: ...相关字段类型:ItemStack。
ItemStack__Block_string_
继承 Struct。
python
class ItemStack__Block_string_(_Struct):
InputType: ItemType
Output: ItemStack
Block: str | StringBytes
def __init__(self, /, *,
InputType: ItemType = ...,
Output: ItemStack = ...,
Block: str | StringBytes = ...,
) -> None: ...ItemStack__Block_string_…lock_string_
继承 Struct。
python
class ItemStack__Block_string__struct_RecipeNetworkID_uint32__RecipeID_string__Template_github_com_OmineDev_neomega_core_minecraft_protocol_ItemDescriptorCount__Base_github_com_OmineDev_neomega_core_minecraft_protocol_ItemDescriptorCount__Addition_github_com_OmineDev_neomega_core_minecraft_protocol_ItemDescriptorCount__Result_github_com_OmineDev_neomega_core_minecraft_protocol_ItemStack__Block_string_(_Struct):
RecipeNetworkID: int
RecipeID: str | StringBytes
Template: ItemDescriptorCount
Base: ItemDescriptorCount
Addition: ItemDescriptorCount
Result: ItemStack
Block: str | StringBytes
def __init__(self, /, *,
RecipeNetworkID: int = ...,
RecipeID: str | StringBytes = ...,
Template: ItemDescriptorCount = ...,
Base: ItemDescriptorCount = ...,
Addition: ItemDescriptorCount = ...,
Result: ItemStack = ...,
Block: str | StringBytes = ...,
) -> None: ...相关字段类型:ItemDescriptorCount、ItemStack。
ItemStack__GroupIndex_uint32_
继承 Struct。
python
class ItemStack__GroupIndex_uint32_(_Struct):
CreativeItemNetworkID: int
Item: ItemStack
GroupIndex: int
def __init__(self, /, *,
CreativeItemNetworkID: int = ...,
Item: ItemStack = ...,
GroupIndex: int = ...,
) -> None: ...相关字段类型:ItemStack。
ItemStack__struct_StackN…l_ItemStack_
继承 Struct。
python
class ItemStack__struct_StackNetworkID_int32__Stack_github_com_OmineDev_neomega_core_minecraft_protocol_ItemStack_(_Struct):
StackNetworkID: int
Stack: ItemStack
def __init__(self, /, *,
StackNetworkID: int = ...,
Stack: ItemStack = ...,
) -> None: ...相关字段类型:ItemStack。
ItemStack__TimesCrafted_byte_
继承 Struct。
python
class ItemStack__TimesCrafted_byte_(_Struct):
ResultItems: list[ItemStack] | tuple[ItemStack, ...] | None
TimesCrafted: int
def __init__(self, /, *,
ResultItems: list[ItemStack] | tuple[ItemStack, ...] | None = ...,
TimesCrafted: int = ...,
) -> None: ...相关字段类型:ItemStack。
ItemStackRequest
继承 Packet。
python
class ItemStackRequest(_Packet):
packet_id: ClassVar[int] = 147
packet_name: ClassVar[str] = 'ItemStackRequest'
Requests: list[ProtocolItemStackRequest] | tuple[ProtocolItemStackRequest, ...] | None
def __init__(self, /, *,
Requests: list[ProtocolItemStackRequest] | tuple[ProtocolItemStackRequest, ...] | None = ...,
) -> None: ...相关字段类型:ProtocolItemStackRequest。
ItemStackRequest_
继承 Struct。
python
class ItemStackRequest_(_Struct):
Requests: list[ProtocolItemStackRequest] | tuple[ProtocolItemStackRequest, ...] | None
def __init__(self, /, *,
Requests: list[ProtocolItemStackRequest] | tuple[ProtocolItemStackRequest, ...] | None = ...,
) -> None: ...相关字段类型:ProtocolItemStackRequest。
ItemStackResponse
继承 Packet。
python
class ItemStackResponse(_Packet):
packet_id: ClassVar[int] = 148
packet_name: ClassVar[str] = 'ItemStackResponse'
Responses: list[ProtocolItemStackResponse] | tuple[ProtocolItemStackResponse, ...] | None
def __init__(self, /, *,
Responses: list[ProtocolItemStackResponse] | tuple[ProtocolItemStackResponse, ...] | None = ...,
) -> None: ...相关字段类型:ProtocolItemStackResponse。
ItemStackResponse_
继承 Struct。
python
class ItemStackResponse_(_Struct):
Responses: list[ProtocolItemStackResponse] | tuple[ProtocolItemStackResponse, ...] | None
def __init__(self, /, *,
Responses: list[ProtocolItemStackResponse] | tuple[ProtocolItemStackResponse, ...] | None = ...,
) -> None: ...相关字段类型:ProtocolItemStackResponse。