跳转到正文

协议模型:P · 1 ​

全部模型 · 协议包用法

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

PacketViolationWarning ​

继承 Packet。

python
class PacketViolationWarning(_Packet):
    packet_id: ClassVar[int] = 156
    packet_name: ClassVar[str] = 'PacketViolationWarning'
    Type: int
    Severity: int
    PacketID: int
    ViolationContext: str | StringBytes
    def __init__(self, /, *,
        Type: int = ...,
        Severity: int = ...,
        PacketID: int = ...,
        ViolationContext: str | StringBytes = ...,
    ) -> None: ...

PackSetting ​

继承 Struct。

python
class PackSetting(_Struct):
    Name: str | StringBytes
    Value: DynamicValue | UnionValue | _Struct | None
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        Value: DynamicValue | UnionValue | _Struct | None = ...,
    ) -> None: ...

PackSetting_ ​

继承 Struct。

python
class PackSetting_(_Struct):
    PackID: bytes
    PackSetting: PackSetting
    def __init__(self, /, *,
        PackID: bytes = ...,
        PackSetting: PackSetting = ...,
    ) -> None: ...

相关字段类型:PackSetting。

PackURL ​

继承 Struct。

python
class PackURL(_Struct):
    UUIDVersion: str | StringBytes
    URL: str | StringBytes
    def __init__(self, /, *,
        UUIDVersion: str | StringBytes = ...,
        URL: str | StringBytes = ...,
    ) -> None: ...

ParameterKeyframeValue ​

继承 Struct。

python
class ParameterKeyframeValue(_Struct):
    Time: float | FloatBits
    Value: list[float | FloatBits] | tuple[float | FloatBits, ...]
    def __init__(self, /, *,
        Time: float | FloatBits = ...,
        Value: list[float | FloatBits] | tuple[float | FloatBits, ...] = ...,
    ) -> None: ...

ParameterKeyframeValue__…_Reset_bool_ ​

继承 Struct。

python
class ParameterKeyframeValue__BiomeIdentifier_string__ParameterType_uint8__Reset_bool_(_Struct):
    Values: list[ParameterKeyframeValue] | tuple[ParameterKeyframeValue, ...] | None
    BiomeIdentifier: str | StringBytes
    ParameterType: int
    Reset: bool
    def __init__(self, /, *,
        Values: list[ParameterKeyframeValue] | tuple[ParameterKeyframeValue, ...] | None = ...,
        BiomeIdentifier: str | StringBytes = ...,
        ParameterType: int = ...,
        Reset: bool = ...,
    ) -> None: ...

相关字段类型:ParameterKeyframeValue。

PatternRemovedEvent ​

继承 Struct。

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

PersonaPiece ​

继承 Struct。

python
class PersonaPiece(_Struct):
    PieceID: str | StringBytes
    PieceType: str | StringBytes
    PackID: str | StringBytes
    Default: bool
    ProductID: str | StringBytes
    def __init__(self, /, *,
        PieceID: str | StringBytes = ...,
        PieceType: str | StringBytes = ...,
        PackID: str | StringBytes = ...,
        Default: bool = ...,
        ProductID: str | StringBytes = ...,
    ) -> None: ...

PersonaPieceTintColour ​

继承 Struct。

python
class PersonaPieceTintColour(_Struct):
    PieceType: str | StringBytes
    Colours: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
    def __init__(self, /, *,
        PieceType: str | StringBytes = ...,
        Colours: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
    ) -> None: ...

PersonaPieceTintColour__…arance_bool_ ​

继承 Struct。

python
class PersonaPieceTintColour__Trusted_bool__OverrideAppearance_bool_(_Struct):
    SkinID: str | StringBytes
    PlayFabID: str | StringBytes
    SkinResourcePatch: bytes | None
    SkinImageWidth: int
    SkinImageHeight: int
    SkinData: bytes | None
    Animations: list[SkinAnimation] | tuple[SkinAnimation, ...] | None
    CapeImageWidth: int
    CapeImageHeight: int
    CapeData: bytes | None
    SkinGeometry: bytes | None
    AnimationData: bytes | None
    GeometryDataEngineVersion: bytes | None
    PremiumSkin: bool
    PersonaSkin: bool
    PersonaCapeOnClassicSkin: bool
    PrimaryUser: bool
    CapeID: str | StringBytes
    FullID: str | StringBytes
    SkinColour: str | StringBytes
    ArmSize: str | StringBytes
    PersonaPieces: list[PersonaPiece] | tuple[PersonaPiece, ...] | None
    PieceTintColours: list[PersonaPieceTintColour] | tuple[PersonaPieceTintColour, ...] | None
    Trusted: bool
    OverrideAppearance: bool
    def __init__(self, /, *,
        SkinID: str | StringBytes = ...,
        PlayFabID: str | StringBytes = ...,
        SkinResourcePatch: bytes | None = ...,
        SkinImageWidth: int = ...,
        SkinImageHeight: int = ...,
        SkinData: bytes | None = ...,
        Animations: list[SkinAnimation] | tuple[SkinAnimation, ...] | None = ...,
        CapeImageWidth: int = ...,
        CapeImageHeight: int = ...,
        CapeData: bytes | None = ...,
        SkinGeometry: bytes | None = ...,
        AnimationData: bytes | None = ...,
        GeometryDataEngineVersion: bytes | None = ...,
        PremiumSkin: bool = ...,
        PersonaSkin: bool = ...,
        PersonaCapeOnClassicSkin: bool = ...,
        PrimaryUser: bool = ...,
        CapeID: str | StringBytes = ...,
        FullID: str | StringBytes = ...,
        SkinColour: str | StringBytes = ...,
        ArmSize: str | StringBytes = ...,
        PersonaPieces: list[PersonaPiece] | tuple[PersonaPiece, ...] | None = ...,
        PieceTintColours: list[PersonaPieceTintColour] | tuple[PersonaPieceTintColour, ...] | None = ...,
        Trusted: bool = ...,
        OverrideAppearance: bool = ...,
    ) -> None: ...

相关字段类型:PersonaPiece、PersonaPieceTintColour、SkinAnimation。

PetDiedEvent ​

继承 Struct。

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

PhotoInfoRequest ​

继承 Packet。

python
class PhotoInfoRequest(_Packet):
    packet_id: ClassVar[int] = 173
    packet_name: ClassVar[str] = 'PhotoInfoRequest'
    PhotoID: int
    def __init__(self, /, *,
        PhotoID: int = ...,
    ) -> None: ...

PhotoTransfer ​

继承 Packet。

python
class PhotoTransfer(_Packet):
    packet_id: ClassVar[int] = 99
    packet_name: ClassVar[str] = 'PhotoTransfer'
    PhotoName: str | StringBytes
    PhotoData: bytes | None
    BookID: str | StringBytes
    PhotoType: int
    SourceType: int
    OwnerEntityUniqueID: int
    NewPhotoName: str | StringBytes
    def __init__(self, /, *,
        PhotoName: str | StringBytes = ...,
        PhotoData: bytes | None = ...,
        BookID: str | StringBytes = ...,
        PhotoType: int = ...,
        SourceType: int = ...,
        OwnerEntityUniqueID: int = ...,
        NewPhotoName: str | StringBytes = ...,
    ) -> None: ...

PiglinBarterEvent ​

继承 Struct。

python
class PiglinBarterEvent(_Struct):
    ItemID: int
    WasTargetingBarteringPlayer: bool
    def __init__(self, /, *,
        ItemID: int = ...,
        WasTargetingBarteringPlayer: bool = ...,
    ) -> None: ...

PixelRequest ​

继承 Struct。

python
class PixelRequest(_Struct):
    Colour: RGBA
    Index: int
    def __init__(self, /, *,
        Colour: RGBA = ...,
        Index: int = ...,
    ) -> None: ...

相关字段类型:RGBA。

PixelRequest_ ​

继承 Struct。

python
class PixelRequest_(_Struct):
    MapID: int
    ClientPixels: list[PixelRequest] | tuple[PixelRequest, ...] | None
    def __init__(self, /, *,
        MapID: int = ...,
        ClientPixels: list[PixelRequest] | tuple[PixelRequest, ...] | None = ...,
    ) -> None: ...

相关字段类型:PixelRequest。

PlaceInContainerStackRequestAction ​

继承 Struct。

python
class PlaceInContainerStackRequestAction(_Struct):
    transferStackRequestAction: transferStackRequestAction
    def __init__(self, /, *,
        transferStackRequestAction: transferStackRequestAction = ...,
    ) -> None: ...

相关字段类型:transferStackRequestAction。

PlaceStackRequestAction ​

继承 Struct。

python
class PlaceStackRequestAction(_Struct):
    transferStackRequestAction: transferStackRequestAction
    def __init__(self, /, *,
        transferStackRequestAction: transferStackRequestAction = ...,
    ) -> None: ...

相关字段类型:transferStackRequestAction。

PlayerAction ​

继承 Packet。

python
class PlayerAction(_Packet):
    packet_id: ClassVar[int] = 36
    packet_name: ClassVar[str] = 'PlayerAction'
    EntityRuntimeID: int
    ActionType: int
    BlockPosition: list[int] | tuple[int, ...]
    ResultPosition: list[int] | tuple[int, ...]
    BlockFace: int
    def __init__(self, /, *,
        EntityRuntimeID: int = ...,
        ActionType: int = ...,
        BlockPosition: list[int] | tuple[int, ...] = ...,
        ResultPosition: list[int] | tuple[int, ...] = ...,
        BlockFace: int = ...,
    ) -> None: ...

PlayerArmourDamage ​

继承 Packet。

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

相关字段类型:PlayerArmourDamageEntry。

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