跳转到正文

协议模型:S · 6 ​

全部模型 · 协议包用法

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

struct_BossEntityUniqueI…rlay_uint32_ ​

继承 Struct。

python
class struct_BossEntityUniqueID_int64__EventType_uint32__PlayerUniqueID_int64__BossBarTitle_string__FilteredBossBarTitle_string__HealthPercentage_float32__ScreenDarkening_uint16__Colour_uint32__Overlay_uint32_(_Struct):
    BossEntityUniqueID: int
    EventType: int
    PlayerUniqueID: int
    BossBarTitle: str | StringBytes
    FilteredBossBarTitle: str | StringBytes
    HealthPercentage: float | FloatBits
    ScreenDarkening: int
    Colour: int
    Overlay: int
    def __init__(self, /, *,
        BossEntityUniqueID: int = ...,
        EventType: int = ...,
        PlayerUniqueID: int = ...,
        BossBarTitle: str | StringBytes = ...,
        FilteredBossBarTitle: str | StringBytes = ...,
        HealthPercentage: float | FloatBits = ...,
        ScreenDarkening: int = ...,
        Colour: int = ...,
        Overlay: int = ...,
    ) -> None: ...

struct_BossEntityUniqueI…yType_int32_ ​

继承 Struct。

python
class struct_BossEntityUniqueID_int64__PlayerPartySize_int32__InteractionEntityType_int32_(_Struct):
    BossEntityUniqueID: int
    PlayerPartySize: int
    InteractionEntityType: int
    def __init__(self, /, *,
        BossEntityUniqueID: int = ...,
        PlayerPartySize: int = ...,
        InteractionEntityType: int = ...,
    ) -> None: ...

struct_BroadcastAction_b…_string_any_ ​

继承 Struct。

python
class struct_BroadcastAction_byte__TrackingID_int32__Payload_map_string_any_(_Struct):
    BroadcastAction: int
    TrackingID: int
    Payload: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
    def __init__(self, /, *,
        BroadcastAction: int = ...,
        TrackingID: int = ...,
        Payload: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
    ) -> None: ...

struct_ButtonName_string…kURI_string_ ​

继承 Struct。

python
class struct_ButtonName_string__LinkURI_string_(_Struct):
    ButtonName: str | StringBytes
    LinkURI: str | StringBytes
    def __init__(self, /, *,
        ButtonName: str | StringBytes = ...,
        LinkURI: str | StringBytes = ...,
    ) -> None: ...

struct_CameraEntityUniqu…queID_int64_ ​

继承 Struct。

python
class struct_CameraEntityUniqueID_int64__TargetPlayerUniqueID_int64_(_Struct):
    CameraEntityUniqueID: int
    TargetPlayerUniqueID: int
    def __init__(self, /, *,
        CameraEntityUniqueID: int = ...,
        TargetPlayerUniqueID: int = ...,
    ) -> None: ...

struct_Category_string__Duration_int32_ ​

继承 Struct。

python
class struct_Category_string__Duration_int32_(_Struct):
    Category: str | StringBytes
    Duration: int
    def __init__(self, /, *,
        Category: str | StringBytes = ...,
        Duration: int = ...,
    ) -> None: ...

struct_Cause_int32__Dama…Slots_int64_ ​

继承 Struct。

python
class struct_Cause_int32__Damage_int32__ArmourSlots_int64_(_Struct):
    Cause: int
    Damage: int
    ArmourSlots: int
    def __init__(self, /, *,
        Cause: int = ...,
        Damage: int = ...,
        ArmourSlots: int = ...,
    ) -> None: ...

struct_Cause_string__Messages___string_ ​

继承 Struct。

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

struct_ChunkRadius_int32_ ​

继承 Struct。

python
class struct_ChunkRadius_int32_(_Struct):
    ChunkRadius: int
    def __init__(self, /, *,
        ChunkRadius: int = ...,
    ) -> None: ...

struct_ChunkRadius_int32…adius_uint8_ ​

继承 Struct。

python
class struct_ChunkRadius_int32__MaxChunkRadius_uint8_(_Struct):
    ChunkRadius: int
    MaxChunkRadius: int
    def __init__(self, /, *,
        ChunkRadius: int = ...,
        MaxChunkRadius: int = ...,
    ) -> None: ...

struct_ClayMaterial_uint…Forest_bool_ ​

继承 Struct。

python
class struct_ClayMaterial_uint32__HardClayMaterial_uint32__BrycePillars_bool__HasForest_bool_(_Struct):
    ClayMaterial: int
    HardClayMaterial: int
    BrycePillars: bool
    HasForest: bool
    def __init__(self, /, *,
        ClayMaterial: int = ...,
        HardClayMaterial: int = ...,
        BrycePillars: bool = ...,
        HasForest: bool = ...,
    ) -> None: ...

struct_ClientProtocol_int32_ ​

继承 Struct。

python
class struct_ClientProtocol_int32_(_Struct):
    ClientProtocol: int
    def __init__(self, /, *,
        ClientProtocol: int = ...,
    ) -> None: ...

struct_ClientProtocol_in…uest___byte_ ​

继承 Struct。

python
class struct_ClientProtocol_int32__ConnectionRequest___byte_(_Struct):
    ClientProtocol: int
    ConnectionRequest: bytes | None
    def __init__(self, /, *,
        ClientProtocol: int = ...,
        ConnectionRequest: bytes | None = ...,
    ) -> None: ...

struct_Colour_uint32__Po…Level_int32_ ​

继承 Struct。

python
class struct_Colour_uint32__PotionID_int32__FillLevel_int32_(_Struct):
    Colour: int
    PotionID: int
    FillLevel: int
    def __init__(self, /, *,
        Colour: int = ...,
        PotionID: int = ...,
        FillLevel: int = ...,
    ) -> None: ...

struct_CommandLine_strin…Output_bool_ ​

继承 Struct。

python
class struct_CommandLine_string__SuppressOutput_bool_(_Struct):
    CommandLine: str | StringBytes
    SuppressOutput: bool
    def __init__(self, /, *,
        CommandLine: str | StringBytes = ...,
        SuppressOutput: bool = ...,
    ) -> None: ...

struct_CompressionThresh…lar_float32_ ​

继承 Struct。

python
class struct_CompressionThreshold_uint16__CompressionAlgorithm_uint16__ClientThrottle_bool__ClientThrottleThreshold_uint8__ClientThrottleScalar_float32_(_Struct):
    CompressionThreshold: int
    CompressionAlgorithm: int
    ClientThrottle: bool
    ClientThrottleThreshold: int
    ClientThrottleScalar: float | FloatBits
    def __init__(self, /, *,
        CompressionThreshold: int = ...,
        CompressionAlgorithm: int = ...,
        ClientThrottle: bool = ...,
        ClientThrottleThreshold: int = ...,
        ClientThrottleScalar: float | FloatBits = ...,
    ) -> None: ...

struct_ConnectionRequest___byte_ ​

继承 Struct。

python
class struct_ConnectionRequest___byte_(_Struct):
    ConnectionRequest: bytes | None
    def __init__(self, /, *,
        ConnectionRequest: bytes | None = ...,
    ) -> None: ...

struct_ContainerID_byte__Slots___byte_ ​

继承 Struct。

python
class struct_ContainerID_byte__Slots___byte_(_Struct):
    ContainerID: int
    Slots: bytes | None
    def __init__(self, /, *,
        ContainerID: int = ...,
        Slots: bytes | None = ...,
    ) -> None: ...

struct_ControlScheme_byte_ ​

继承 Struct。

python
class struct_ControlScheme_byte_(_Struct):
    ControlScheme: int
    def __init__(self, /, *,
        ControlScheme: int = ...,
    ) -> None: ...

struct_CopperBlockID_int32_ ​

继承 Struct。

python
class struct_CopperBlockID_int32_(_Struct):
    CopperBlockID: int
    def __init__(self, /, *,
        CopperBlockID: int = ...,
    ) -> None: ...

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