外观
协议模型:I · 1
选择模型查看构造参数和字段,代码块保留完整模型名称。... 表示可省略的字段,省略时使用该类型的零值。
IntInt_IntegerEntityPropertyInteractInvalidItemDescriptorInventoryActionInventoryContentInventorySlotInventoryTransactionInventoryTransactionData_ItemItem__mapstructure____squash____ItemDescriptor__Count_int32_ItemDescriptorCountItemDescriptorCount_ItemDescriptorCount__Block_string_ItemDescriptorCount__str…riptorCount_ItemEnchantmentsItemEnchantments__Name_s…rkID_uint32_ItemEntry
Int
继承 Struct。
python
class Int(_Struct):
def __init__(self) -> None: ...Int_
继承 Struct。
python
class Int_(_Struct):
def __init__(self) -> None: ...IntegerEntityProperty
继承 Struct。
python
class IntegerEntityProperty(_Struct):
Index: int
Value: int
def __init__(self, /, *,
Index: int = ...,
Value: int = ...,
) -> None: ...Interact
继承 Packet。
python
class Interact(_Packet):
packet_id: ClassVar[int] = 33
packet_name: ClassVar[str] = 'Interact'
ActionType: int
TargetEntityRuntimeID: int
Position: list[float | FloatBits] | tuple[float | FloatBits, ...]
def __init__(self, /, *,
ActionType: int = ...,
TargetEntityRuntimeID: int = ...,
Position: list[float | FloatBits] | tuple[float | FloatBits, ...] = ...,
) -> None: ...InvalidItemDescriptor
继承 Struct。
python
class InvalidItemDescriptor(_Struct):
def __init__(self) -> None: ...InventoryAction
继承 Struct。
python
class InventoryAction(_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。
InventoryContent
继承 Packet。
python
class InventoryContent(_Packet):
packet_id: ClassVar[int] = 49
packet_name: ClassVar[str] = 'InventoryContent'
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。
InventorySlot
继承 Packet。
python
class InventorySlot(_Packet):
packet_id: ClassVar[int] = 50
packet_name: ClassVar[str] = 'InventorySlot'
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。
InventoryTransaction
继承 Packet。
python
class InventoryTransaction(_Packet):
packet_id: ClassVar[int] = 30
packet_name: ClassVar[str] = 'InventoryTransaction'
LegacyRequestID: int
LegacySetItemSlots: list[LegacySetItemSlot] | tuple[LegacySetItemSlot, ...] | None
Actions: list[InventoryAction] | tuple[InventoryAction, ...] | None
TransactionData: UnionValue | DynamicValue | MismatchTransactionData | NormalTransactionData | ReleaseItemTransactionData | UseItemOnEntityTransactionData | UseItemTransactionData | None
def __init__(self, /, *,
LegacyRequestID: int = ...,
LegacySetItemSlots: list[LegacySetItemSlot] | tuple[LegacySetItemSlot, ...] | None = ...,
Actions: list[InventoryAction] | tuple[InventoryAction, ...] | None = ...,
TransactionData: UnionValue | DynamicValue | MismatchTransactionData | NormalTransactionData | ReleaseItemTransactionData | UseItemOnEntityTransactionData | UseItemTransactionData | None = ...,
) -> None: ...相关字段类型:InventoryAction、LegacySetItemSlot、MismatchTransactionData、NormalTransactionData、ReleaseItemTransactionData、UseItemOnEntityTransactionData、UseItemTransactionData。
InventoryTransactionData_
继承 Struct。
python
class InventoryTransactionData_(_Struct):
LegacyRequestID: int
LegacySetItemSlots: list[LegacySetItemSlot] | tuple[LegacySetItemSlot, ...] | None
Actions: list[InventoryAction] | tuple[InventoryAction, ...] | None
TransactionData: UnionValue | DynamicValue | MismatchTransactionData | NormalTransactionData | ReleaseItemTransactionData | UseItemOnEntityTransactionData | UseItemTransactionData | None
def __init__(self, /, *,
LegacyRequestID: int = ...,
LegacySetItemSlots: list[LegacySetItemSlot] | tuple[LegacySetItemSlot, ...] | None = ...,
Actions: list[InventoryAction] | tuple[InventoryAction, ...] | None = ...,
TransactionData: UnionValue | DynamicValue | MismatchTransactionData | NormalTransactionData | ReleaseItemTransactionData | UseItemOnEntityTransactionData | UseItemTransactionData | None = ...,
) -> None: ...相关字段类型:InventoryAction、LegacySetItemSlot、MismatchTransactionData、NormalTransactionData、ReleaseItemTransactionData、UseItemOnEntityTransactionData、UseItemTransactionData。
Item
继承 Struct。
python
class Item(_Struct):
Count: int
Damage: int
Name: str | StringBytes
WasPickedUp: int
Block: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
Tag: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
ModBlock: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
CanDestroy: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None
CanPlaceOn: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None
def __init__(self, /, *,
Count: int = ...,
Damage: int = ...,
Name: str | StringBytes = ...,
WasPickedUp: int = ...,
Block: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
Tag: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
ModBlock: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
CanDestroy: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None = ...,
CanPlaceOn: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None = ...,
) -> None: ...Item__mapstructure____squash____
继承 Struct。
python
class Item__mapstructure____squash____(_Struct):
Slot: int
Item: Item
def __init__(self, /, *,
Slot: int = ...,
Item: Item = ...,
) -> None: ...相关字段类型:Item。
ItemDescriptor__Count_int32_
继承 Struct。
python
class ItemDescriptor__Count_int32_(_Struct):
Descriptor: UnionValue | DynamicValue | ComplexAliasItemDescriptor | DefaultItemDescriptor | DeferredItemDescriptor | InvalidItemDescriptor | ItemTagItemDescriptor | MoLangItemDescriptor | None
Count: int
def __init__(self, /, *,
Descriptor: UnionValue | DynamicValue | ComplexAliasItemDescriptor | DefaultItemDescriptor | DeferredItemDescriptor | InvalidItemDescriptor | ItemTagItemDescriptor | MoLangItemDescriptor | None = ...,
Count: int = ...,
) -> None: ...相关字段类型:ComplexAliasItemDescriptor、DefaultItemDescriptor、DeferredItemDescriptor、InvalidItemDescriptor、ItemTagItemDescriptor、MoLangItemDescriptor。
ItemDescriptorCount
继承 Struct。
python
class ItemDescriptorCount(_Struct):
Descriptor: UnionValue | DynamicValue | ComplexAliasItemDescriptor | DefaultItemDescriptor | DeferredItemDescriptor | InvalidItemDescriptor | ItemTagItemDescriptor | MoLangItemDescriptor | None
Count: int
def __init__(self, /, *,
Descriptor: UnionValue | DynamicValue | ComplexAliasItemDescriptor | DefaultItemDescriptor | DeferredItemDescriptor | InvalidItemDescriptor | ItemTagItemDescriptor | MoLangItemDescriptor | None = ...,
Count: int = ...,
) -> None: ...相关字段类型:ComplexAliasItemDescriptor、DefaultItemDescriptor、DeferredItemDescriptor、InvalidItemDescriptor、ItemTagItemDescriptor、MoLangItemDescriptor。
ItemDescriptorCount_
继承 Struct。
python
class ItemDescriptorCount_(_Struct):
Context: int
Ingredients: list[ItemDescriptorCount] | tuple[ItemDescriptorCount, ...] | None
def __init__(self, /, *,
Context: int = ...,
Ingredients: list[ItemDescriptorCount] | tuple[ItemDescriptorCount, ...] | None = ...,
) -> None: ...相关字段类型:ItemDescriptorCount。
ItemDescriptorCount__Block_string_
继承 Struct。
python
class ItemDescriptorCount__Block_string_(_Struct):
RecipeNetworkID: int
RecipeID: str | StringBytes
Template: ItemDescriptorCount
Base: ItemDescriptorCount
Addition: ItemDescriptorCount
Block: str | StringBytes
def __init__(self, /, *,
RecipeNetworkID: int = ...,
RecipeID: str | StringBytes = ...,
Template: ItemDescriptorCount = ...,
Base: ItemDescriptorCount = ...,
Addition: ItemDescriptorCount = ...,
Block: str | StringBytes = ...,
) -> None: ...相关字段类型:ItemDescriptorCount。
ItemDescriptorCount__str…riptorCount_
继承 Struct。
python
class ItemDescriptorCount__struct_RecipeNetworkID_uint32__NumberOfCrafts_byte__TimesCrafted_byte__Ingredients___github_com_OmineDev_neomega_core_minecraft_protocol_ItemDescriptorCount_(_Struct):
RecipeNetworkID: int
NumberOfCrafts: int
TimesCrafted: int
Ingredients: list[ItemDescriptorCount] | tuple[ItemDescriptorCount, ...] | None
def __init__(self, /, *,
RecipeNetworkID: int = ...,
NumberOfCrafts: int = ...,
TimesCrafted: int = ...,
Ingredients: list[ItemDescriptorCount] | tuple[ItemDescriptorCount, ...] | None = ...,
) -> None: ...相关字段类型:ItemDescriptorCount。
ItemEnchantments
继承 Struct。
python
class ItemEnchantments(_Struct):
Slot: int
Enchantments: list[list[EnchantmentInstance] | tuple[EnchantmentInstance, ...] | None] | tuple[list[EnchantmentInstance] | tuple[EnchantmentInstance, ...] | None, ...]
Unknown: int
def __init__(self, /, *,
Slot: int = ...,
Enchantments: list[list[EnchantmentInstance] | tuple[EnchantmentInstance, ...] | None] | tuple[list[EnchantmentInstance] | tuple[EnchantmentInstance, ...] | None, ...] = ...,
Unknown: int = ...,
) -> None: ...相关字段类型:EnchantmentInstance。
ItemEnchantments__Name_s…rkID_uint32_
继承 Struct。
python
class ItemEnchantments__Name_string__RecipeNetworkID_uint32_(_Struct):
Cost: int
Enchantments: ItemEnchantments
Name: str | StringBytes
RecipeNetworkID: int
def __init__(self, /, *,
Cost: int = ...,
Enchantments: ItemEnchantments = ...,
Name: str | StringBytes = ...,
RecipeNetworkID: int = ...,
) -> None: ...相关字段类型:ItemEnchantments。
ItemEntry
继承 Struct。
python
class ItemEntry(_Struct):
Name: str | StringBytes
RuntimeID: int
ComponentBased: bool
Version: int
Data: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
def __init__(self, /, *,
Name: str | StringBytes = ...,
RuntimeID: int = ...,
ComponentBased: bool = ...,
Version: int = ...,
Data: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
) -> None: ...