跳转到正文

协议模型:S · 16 ​

全部模型 · 协议包用法

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

struct_UUID_string__Data…ckType_byte_ ​

继承 Struct。

python
class struct_UUID_string__DataChunkSize_uint32__ChunkCount_uint32__Size_uint64__Hash___byte__Premium_bool__PackType_byte_(_Struct):
    UUID: str | StringBytes
    DataChunkSize: int
    ChunkCount: int
    Size: int
    Hash: bytes | None
    Premium: bool
    PackType: int
    def __init__(self, /, *,
        UUID: str | StringBytes = ...,
        DataChunkSize: int = ...,
        ChunkCount: int = ...,
        Size: int = ...,
        Hash: bytes | None = ...,
        Premium: bool = ...,
        PackType: int = ...,
    ) -> None: ...

struct_UUID_string__Vers…Name_string_ ​

继承 Struct。

python
class struct_UUID_string__Version_string__SubPackName_string_(_Struct):
    UUID: str | StringBytes
    Version: str | StringBytes
    SubPackName: str | StringBytes
    def __init__(self, /, *,
        UUID: str | StringBytes = ...,
        Version: str | StringBytes = ...,
        SubPackName: str | StringBytes = ...,
    ) -> None: ...

struct_UUIDVersion_string__URL_string_ ​

继承 Struct。

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

struct_Value_any__OperationType_uint32_ ​

继承 Struct。

python
class struct_Value_any__OperationType_uint32_(_Struct):
    Value: DynamicValue | UnionValue | _Struct | None
    OperationType: int
    def __init__(self, /, *,
        Value: DynamicValue | UnionValue | _Struct | None = ...,
        OperationType: int = ...,
    ) -> None: ...

struct_when_int64__index…_isutc_bool_ ​

继承 Struct。

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

struct_WindowID_byte__Co…erSide_bool_ ​

继承 Struct。

python
class struct_WindowID_byte__ContainerType_byte__ServerSide_bool_(_Struct):
    WindowID: int
    ContainerType: int
    ServerSide: bool
    def __init__(self, /, *,
        WindowID: int = ...,
        ContainerType: int = ...,
        ServerSide: bool = ...,
    ) -> None: ...

struct_WindowID_byte__Ke…Value_int32_ ​

继承 Struct。

python
class struct_WindowID_byte__Key_int32__Value_int32_(_Struct):
    WindowID: int
    Key: int
    Value: int
    def __init__(self, /, *,
        WindowID: int = ...,
        Key: int = ...,
        Value: int = ...,
    ) -> None: ...

struct_WindowID_byte__Wi…Data___byte_ ​

继承 Struct。

python
class struct_WindowID_byte__WindowType_byte__Size_int32__EntityUniqueID_int64__SerialisedInventoryData___byte_(_Struct):
    WindowID: int
    WindowType: int
    Size: int
    EntityUniqueID: int
    SerialisedInventoryData: bytes | None
    def __init__(self, /, *,
        WindowID: int = ...,
        WindowType: int = ...,
        Size: int = ...,
        EntityUniqueID: int = ...,
        SerialisedInventoryData: bytes | None = ...,
    ) -> None: ...

struct_WindowID_byte__Wi…fers___byte_ ​

继承 Struct。

python
class struct_WindowID_byte__WindowType_byte__Size_int32__TradeTier_int32__VillagerUniqueID_int64__EntityUniqueID_int64__DisplayName_string__NewTradeUI_bool__DemandBasedPrices_bool__SerialisedOffers___byte_(_Struct):
    WindowID: int
    WindowType: int
    Size: int
    TradeTier: int
    VillagerUniqueID: int
    EntityUniqueID: int
    DisplayName: str | StringBytes
    NewTradeUI: bool
    DemandBasedPrices: bool
    SerialisedOffers: bytes | None
    def __init__(self, /, *,
        WindowID: int = ...,
        WindowType: int = ...,
        Size: int = ...,
        TradeTier: int = ...,
        VillagerUniqueID: int = ...,
        EntityUniqueID: int = ...,
        DisplayName: str | StringBytes = ...,
        NewTradeUI: bool = ...,
        DemandBasedPrices: bool = ...,
        SerialisedOffers: bytes | None = ...,
    ) -> None: ...

struct_XUID_string_ ​

继承 Struct。

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

StructureBlockUpdate ​

继承 Packet。

python
class StructureBlockUpdate(_Packet):
    packet_id: ClassVar[int] = 90
    packet_name: ClassVar[str] = 'StructureBlockUpdate'
    Position: list[int] | tuple[int, ...]
    StructureName: str | StringBytes
    FilteredStructureName: str | StringBytes
    DataField: str | StringBytes
    IncludePlayers: bool
    ShowBoundingBox: bool
    StructureBlockType: int
    Settings: StructureSettings
    RedstoneSaveMode: int
    ShouldTrigger: bool
    Waterlogged: bool
    def __init__(self, /, *,
        Position: list[int] | tuple[int, ...] = ...,
        StructureName: str | StringBytes = ...,
        FilteredStructureName: str | StringBytes = ...,
        DataField: str | StringBytes = ...,
        IncludePlayers: bool = ...,
        ShowBoundingBox: bool = ...,
        StructureBlockType: int = ...,
        Settings: StructureSettings = ...,
        RedstoneSaveMode: int = ...,
        ShouldTrigger: bool = ...,
        Waterlogged: bool = ...,
    ) -> None: ...

相关字段类型:StructureSettings。

StructureSettings ​

继承 Struct。

python
class StructureSettings(_Struct):
    PaletteName: str | StringBytes
    IgnoreEntities: bool
    IgnoreBlocks: bool
    AllowNonTickingChunks: bool
    Size: list[int] | tuple[int, ...]
    Offset: list[int] | tuple[int, ...]
    LastEditingPlayerUniqueID: int
    Rotation: int
    Mirror: int
    AnimationMode: int
    AnimationDuration: float | FloatBits
    Integrity: float | FloatBits
    Seed: int
    Pivot: list[float | FloatBits] | tuple[float | FloatBits, ...]
    def __init__(self, /, *,
        PaletteName: str | StringBytes = ...,
        IgnoreEntities: bool = ...,
        IgnoreBlocks: bool = ...,
        AllowNonTickingChunks: bool = ...,
        Size: list[int] | tuple[int, ...] = ...,
        Offset: list[int] | tuple[int, ...] = ...,
        LastEditingPlayerUniqueID: int = ...,
        Rotation: int = ...,
        Mirror: int = ...,
        AnimationMode: int = ...,
        AnimationDuration: float | FloatBits = ...,
        Integrity: float | FloatBits = ...,
        Seed: int = ...,
        Pivot: list[float | FloatBits] | tuple[float | FloatBits, ...] = ...,
    ) -> None: ...

StructureSettings__Redst…logged_bool_ ​

继承 Struct。

python
class StructureSettings__RedstoneSaveMode_int32__ShouldTrigger_bool__Waterlogged_bool_(_Struct):
    Position: list[int] | tuple[int, ...]
    StructureName: str | StringBytes
    FilteredStructureName: str | StringBytes
    DataField: str | StringBytes
    IncludePlayers: bool
    ShowBoundingBox: bool
    StructureBlockType: int
    Settings: StructureSettings
    RedstoneSaveMode: int
    ShouldTrigger: bool
    Waterlogged: bool
    def __init__(self, /, *,
        Position: list[int] | tuple[int, ...] = ...,
        StructureName: str | StringBytes = ...,
        FilteredStructureName: str | StringBytes = ...,
        DataField: str | StringBytes = ...,
        IncludePlayers: bool = ...,
        ShowBoundingBox: bool = ...,
        StructureBlockType: int = ...,
        Settings: StructureSettings = ...,
        RedstoneSaveMode: int = ...,
        ShouldTrigger: bool = ...,
        Waterlogged: bool = ...,
    ) -> None: ...

相关字段类型:StructureSettings。

StructureSettings__RequestType_byte_ ​

继承 Struct。

python
class StructureSettings__RequestType_byte_(_Struct):
    StructureName: str | StringBytes
    Position: list[int] | tuple[int, ...]
    Settings: StructureSettings
    RequestType: int
    def __init__(self, /, *,
        StructureName: str | StringBytes = ...,
        Position: list[int] | tuple[int, ...] = ...,
        Settings: StructureSettings = ...,
        RequestType: int = ...,
    ) -> None: ...

相关字段类型:StructureSettings。

StructureTemplateDataRequest ​

继承 Packet。

python
class StructureTemplateDataRequest(_Packet):
    packet_id: ClassVar[int] = 132
    packet_name: ClassVar[str] = 'StructureTemplateDataRequest'
    StructureName: str | StringBytes
    Position: list[int] | tuple[int, ...]
    Settings: StructureSettings
    RequestType: int
    def __init__(self, /, *,
        StructureName: str | StringBytes = ...,
        Position: list[int] | tuple[int, ...] = ...,
        Settings: StructureSettings = ...,
        RequestType: int = ...,
    ) -> None: ...

相关字段类型:StructureSettings。

StructureTemplateDataResponse ​

继承 Packet。

python
class StructureTemplateDataResponse(_Packet):
    packet_id: ClassVar[int] = 133
    packet_name: ClassVar[str] = 'StructureTemplateDataResponse'
    StructureName: str | StringBytes
    Success: bool
    ResponseType: int
    StructureTemplate: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
    def __init__(self, /, *,
        StructureName: str | StringBytes = ...,
        Success: bool = ...,
        ResponseType: int = ...,
        StructureTemplate: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
    ) -> None: ...

SubChunk ​

继承 Packet。

python
class SubChunk(_Packet):
    packet_id: ClassVar[int] = 174
    packet_name: ClassVar[str] = 'SubChunk'
    CacheEnabled: bool
    Dimension: int
    Position: list[int] | tuple[int, ...]
    SubChunkEntries: list[SubChunkEntry] | tuple[SubChunkEntry, ...] | None
    def __init__(self, /, *,
        CacheEnabled: bool = ...,
        Dimension: int = ...,
        Position: list[int] | tuple[int, ...] = ...,
        SubChunkEntries: list[SubChunkEntry] | tuple[SubChunkEntry, ...] | None = ...,
    ) -> None: ...

相关字段类型:SubChunkEntry。

SubChunkEntry ​

继承 Struct。

python
class SubChunkEntry(_Struct):
    Offset: list[int] | tuple[int, ...]
    Result: int
    RawPayload: bytes | None
    HeightMapType: int
    HeightMapData: list[int] | tuple[int, ...] | None
    RenderHeightMapType: int
    RenderHeightMapData: list[int] | tuple[int, ...] | None
    BlobHash: int
    def __init__(self, /, *,
        Offset: list[int] | tuple[int, ...] = ...,
        Result: int = ...,
        RawPayload: bytes | None = ...,
        HeightMapType: int = ...,
        HeightMapData: list[int] | tuple[int, ...] | None = ...,
        RenderHeightMapType: int = ...,
        RenderHeightMapData: list[int] | tuple[int, ...] | None = ...,
        BlobHash: int = ...,
    ) -> None: ...

SubChunkEntry_ ​

继承 Struct。

python
class SubChunkEntry_(_Struct):
    CacheEnabled: bool
    Dimension: int
    Position: list[int] | tuple[int, ...]
    SubChunkEntries: list[SubChunkEntry] | tuple[SubChunkEntry, ...] | None
    def __init__(self, /, *,
        CacheEnabled: bool = ...,
        Dimension: int = ...,
        Position: list[int] | tuple[int, ...] = ...,
        SubChunkEntries: list[SubChunkEntry] | tuple[SubChunkEntry, ...] | None = ...,
    ) -> None: ...

相关字段类型:SubChunkEntry。

SubChunkOffset_ ​

继承 Struct。

python
class SubChunkOffset_(_Struct):
    Dimension: int
    Position: list[int] | tuple[int, ...]
    Offsets: list[list[int] | tuple[int, ...]] | tuple[list[int] | tuple[int, ...], ...] | None
    def __init__(self, /, *,
        Dimension: int = ...,
        Position: list[int] | tuple[int, ...] = ...,
        Offsets: list[list[int] | tuple[int, ...]] | tuple[list[int] | tuple[int, ...], ...] | None = ...,
    ) -> None: ...

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