跳转到正文

协议模型:M · 1 ​

全部模型 · 协议包用法

选择模型查看构造参数和字段,代码块保留完整模型名称。... 表示可省略的字段,省略时使用该类型的零值。

MapCreateLockedCopy ​

继承 Packet。

python
class MapCreateLockedCopy(_Packet):
    packet_id: ClassVar[int] = 131
    packet_name: ClassVar[str] = 'MapCreateLockedCopy'
    OriginalMapID: int
    NewMapID: int
    def __init__(self, /, *,
        OriginalMapID: int = ...,
        NewMapID: int = ...,
    ) -> None: ...

MapDecoration ​

继承 Struct。

python
class MapDecoration(_Struct):
    Type: int
    Rotation: int
    X: int
    Y: int
    Label: str | StringBytes
    Colour: RGBA
    def __init__(self, /, *,
        Type: int = ...,
        Rotation: int = ...,
        X: int = ...,
        Y: int = ...,
        Label: str | StringBytes = ...,
        Colour: RGBA = ...,
    ) -> None: ...

相关字段类型:RGBA。

MapInfoRequest ​

继承 Packet。

python
class MapInfoRequest(_Packet):
    packet_id: ClassVar[int] = 68
    packet_name: ClassVar[str] = 'MapInfoRequest'
    MapID: int
    ClientPixels: list[PixelRequest] | tuple[PixelRequest, ...] | None
    def __init__(self, /, *,
        MapID: int = ...,
        ClientPixels: list[PixelRequest] | tuple[PixelRequest, ...] | None = ...,
    ) -> None: ...

相关字段类型:PixelRequest。

MapTrackedObject ​

继承 Struct。

python
class MapTrackedObject(_Struct):
    Type: int
    EntityUniqueID: int
    BlockPosition: list[int] | tuple[int, ...]
    def __init__(self, /, *,
        Type: int = ...,
        EntityUniqueID: int = ...,
        BlockPosition: list[int] | tuple[int, ...] = ...,
    ) -> None: ...

MaterialReducer ​

继承 Struct。

python
class MaterialReducer(_Struct):
    InputItem: ItemType
    Outputs: list[MaterialReducerOutput] | tuple[MaterialReducerOutput, ...] | None
    def __init__(self, /, *,
        InputItem: ItemType = ...,
        Outputs: list[MaterialReducerOutput] | tuple[MaterialReducerOutput, ...] | None = ...,
    ) -> None: ...

相关字段类型:ItemType、MaterialReducerOutput。

MaterialReducerOutput ​

继承 Struct。

python
class MaterialReducerOutput(_Struct):
    NetworkID: int
    Count: int
    def __init__(self, /, *,
        NetworkID: int = ...,
        Count: int = ...,
    ) -> None: ...

MaterialReducerOutput_ ​

继承 Struct。

python
class MaterialReducerOutput_(_Struct):
    InputItem: ItemType
    Outputs: list[MaterialReducerOutput] | tuple[MaterialReducerOutput, ...] | None
    def __init__(self, /, *,
        InputItem: ItemType = ...,
        Outputs: list[MaterialReducerOutput] | tuple[MaterialReducerOutput, ...] | None = ...,
    ) -> None: ...

相关字段类型:ItemType、MaterialReducerOutput。

MineBlockStackRequestAction ​

继承 Struct。

python
class MineBlockStackRequestAction(_Struct):
    HotbarSlot: int
    PredictedDurability: int
    StackNetworkID: int
    def __init__(self, /, *,
        HotbarSlot: int = ...,
        PredictedDurability: int = ...,
        StackNetworkID: int = ...,
    ) -> None: ...

MismatchTransactionData ​

继承 Struct。

python
class MismatchTransactionData(_Struct):
    def __init__(self) -> None: ...

MobArmourEquipment ​

继承 Packet。

python
class MobArmourEquipment(_Packet):
    packet_id: ClassVar[int] = 32
    packet_name: ClassVar[str] = 'MobArmourEquipment'
    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。

MobBornEvent ​

继承 Struct。

python
class MobBornEvent(_Struct):
    EntityType: int
    Variant: int
    Colour: int
    def __init__(self, /, *,
        EntityType: int = ...,
        Variant: int = ...,
        Colour: int = ...,
    ) -> None: ...

MobEffect ​

继承 Packet。

python
class MobEffect(_Packet):
    packet_id: ClassVar[int] = 28
    packet_name: ClassVar[str] = 'MobEffect'
    EntityRuntimeID: int
    Operation: int
    EffectType: int
    Amplifier: int
    Particles: bool
    Duration: int
    Tick: int
    def __init__(self, /, *,
        EntityRuntimeID: int = ...,
        Operation: int = ...,
        EffectType: int = ...,
        Amplifier: int = ...,
        Particles: bool = ...,
        Duration: int = ...,
        Tick: int = ...,
    ) -> None: ...

MobEquipment ​

继承 Packet。

python
class MobEquipment(_Packet):
    packet_id: ClassVar[int] = 31
    packet_name: ClassVar[str] = 'MobEquipment'
    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。

MobKilledEvent ​

继承 Struct。

python
class MobKilledEvent(_Struct):
    KillerEntityUniqueID: int
    VictimEntityUniqueID: int
    KillerEntityType: int
    EntityDamageCause: int
    VillagerTradeTier: int
    VillagerDisplayName: str | StringBytes
    def __init__(self, /, *,
        KillerEntityUniqueID: int = ...,
        VictimEntityUniqueID: int = ...,
        KillerEntityType: int = ...,
        EntityDamageCause: int = ...,
        VillagerTradeTier: int = ...,
        VillagerDisplayName: str | StringBytes = ...,
    ) -> None: ...

ModalFormRequest ​

继承 Packet。

python
class ModalFormRequest(_Packet):
    packet_id: ClassVar[int] = 100
    packet_name: ClassVar[str] = 'ModalFormRequest'
    FormID: int
    FormData: bytes | None
    def __init__(self, /, *,
        FormID: int = ...,
        FormData: bytes | None = ...,
    ) -> None: ...

ModalFormResponse ​

继承 Packet。

python
class ModalFormResponse(_Packet):
    packet_id: ClassVar[int] = 101
    packet_name: ClassVar[str] = 'ModalFormResponse'
    FormID: int
    ResponseData: OptionalValue[bytes | None]
    CancelReason: OptionalValue[int]
    def __init__(self, /, *,
        FormID: int = ...,
        ResponseData: OptionalValue[bytes | None] = ...,
        CancelReason: OptionalValue[int] = ...,
    ) -> None: ...

ModBlockActorChanged ​

继承 Packet。

python
class ModBlockActorChanged(_Packet):
    packet_id: ClassVar[int] = 231
    packet_name: ClassVar[str] = 'ModBlockActorChanged'
    Position: list[int] | tuple[int, ...]
    def __init__(self, /, *,
        Position: list[int] | tuple[int, ...] = ...,
    ) -> None: ...

ModEffect ​

继承 Packet。

python
class ModEffect(_Packet):
    packet_id: ClassVar[int] = 230
    packet_name: ClassVar[str] = 'ModEffect'
    Entries: list[ModEffectEntry] | tuple[ModEffectEntry, ...] | None
    def __init__(self, /, *,
        Entries: list[ModEffectEntry] | tuple[ModEffectEntry, ...] | None = ...,
    ) -> None: ...

相关字段类型:ModEffectEntry。

ModEffectEntry ​

继承 Struct。

python
class ModEffectEntry(_Struct):
    EffectID: int
    Position: list[float | FloatBits] | tuple[float | FloatBits, ...]
    Unknown1: str | StringBytes
    Unknown2: str | StringBytes
    def __init__(self, /, *,
        EffectID: int = ...,
        Position: list[float | FloatBits] | tuple[float | FloatBits, ...] = ...,
        Unknown1: str | StringBytes = ...,
        Unknown2: str | StringBytes = ...,
    ) -> None: ...

ModEffectEntry_ ​

继承 Struct。

python
class ModEffectEntry_(_Struct):
    Entries: list[ModEffectEntry] | tuple[ModEffectEntry, ...] | None
    def __init__(self, /, *,
        Entries: list[ModEffectEntry] | tuple[ModEffectEntry, ...] | None = ...,
    ) -> None: ...

相关字段类型:ModEffectEntry。

Neomega · 使用、开发与参考文档