跳转到正文

协议模型:S · 11 ​

全部模型 · 协议包用法

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

struct_MaterialID_string…Name_string_ ​

继承 Struct。

python
class struct_MaterialID_string__Colour_string__ItemName_string_(_Struct):
    MaterialID: str | StringBytes
    Colour: str | StringBytes
    ItemName: str | StringBytes
    def __init__(self, /, *,
        MaterialID: str | StringBytes = ...,
        Colour: str | StringBytes = ...,
        ItemName: str | StringBytes = ...,
    ) -> None: ...

struct_MinValueType_int3…ution_int32_ ​

继承 Struct。

python
class struct_MinValueType_int32__MinValue_int16__MaxValueType_int32__MaxValue_int16__GridOffset_uint32__GridStepSize_uint32__Distribution_int32_(_Struct):
    MinValueType: int
    MinValue: int
    MaxValueType: int
    MaxValue: int
    GridOffset: int
    GridStepSize: int
    Distribution: int
    def __init__(self, /, *,
        MinValueType: int = ...,
        MinValue: int = ...,
        MaxValueType: int = ...,
        MaxValue: int = ...,
        GridOffset: int = ...,
        GridStepSize: int = ...,
        Distribution: int = ...,
    ) -> None: ...

struct_MissHashes___uint…es___uint64_ ​

继承 Struct。

python
class struct_MissHashes___uint64__HitHashes___uint64_(_Struct):
    MissHashes: list[int] | tuple[int, ...] | None
    HitHashes: list[int] | tuple[int, ...] | None
    def __init__(self, /, *,
        MissHashes: list[int] | tuple[int, ...] | None = ...,
        HitHashes: list[int] | tuple[int, ...] | None = ...,
    ) -> None: ...

struct_Name_string_ ​

继承 Struct。

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

struct_Name_string__CanB…__Value_any_ ​

继承 Struct。

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

struct_Name_string__Enabled_bool_ ​

继承 Struct。

python
class struct_Name_string__Enabled_bool_(_Struct):
    Name: str | StringBytes
    Enabled: bool
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        Enabled: bool = ...,
    ) -> None: ...

struct_Name_string__JSON___byte_ ​

继承 Struct。

python
class struct_Name_string__JSON___byte_(_Struct):
    Name: str | StringBytes
    JSON: bytes | None
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        JSON: bytes | None = ...,
    ) -> None: ...

struct_Name_string__MetadataValue_int16_ ​

继承 Struct。

python
class struct_Name_string__MetadataValue_int16_(_Struct):
    Name: str | StringBytes
    MetadataValue: int
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        MetadataValue: int = ...,
    ) -> None: ...

struct_name_string__offs…_isDST_bool_ ​

继承 Struct。

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

struct_Name_string__Prop…_string_any_ ​

继承 Struct。

python
class struct_Name_string__Properties_map_string_any_(_Struct):
    Name: str | StringBytes
    Properties: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        Properties: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
    ) -> None: ...

struct_Name_string__Rang…rator_int32_ ​

继承 Struct。

python
class struct_Name_string__Range__2_int32__Generator_int32_(_Struct):
    Name: str | StringBytes
    Range: list[int] | tuple[int, ...]
    Generator: int
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        Range: list[int] | tuple[int, ...] = ...,
        Generator: int = ...,
    ) -> None: ...

struct_Name_string__Runt…_string_any_ ​

继承 Struct。

python
class struct_Name_string__RuntimeID_int16__ComponentBased_bool__Version_int32__Data_map_string_any_(_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: ...

struct_Name_string__Succ…rror_string_ ​

继承 Struct。

python
class struct_Name_string__Succeeded_bool__Error_string_(_Struct):
    Name: str | StringBytes
    Succeeded: bool
    Error: str | StringBytes
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        Succeeded: bool = ...,
        Error: str | StringBytes = ...,
    ) -> None: ...

struct_Name_string__Type…ptions_byte_ ​

继承 Struct。

python
class struct_Name_string__Type_uint32__Optional_bool__Options_byte_(_Struct):
    Name: str | StringBytes
    Type: int
    Optional: bool
    Options: int
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        Type: int = ...,
        Optional: bool = ...,
        Options: int = ...,
    ) -> None: ...

struct_Name_string__Value_any_ ​

继承 Struct。

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

struct_Name_string__Valu…Min_float32_ ​

继承 Struct。

python
class struct_Name_string__Value_float32__Max_float32__Min_float32_(_Struct):
    Name: str | StringBytes
    Value: float | FloatBits
    Max: float | FloatBits
    Min: float | FloatBits
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        Value: float | FloatBits = ...,
        Max: float | FloatBits = ...,
        Min: float | FloatBits = ...,
    ) -> None: ...

struct_NetworkID_int16__…Value_int16_ ​

继承 Struct。

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

struct_NetworkID_int32__Count_int32_ ​

继承 Struct。

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

struct_NetworkID_int32__…alue_uint32_ ​

继承 Struct。

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

struct_NoPvM_bool__NoMvP…toJump_bool_ ​

继承 Struct。

python
class struct_NoPvM_bool__NoMvP_bool__ImmutableWorld_bool__ShowNameTags_bool__AutoJump_bool_(_Struct):
    NoPvM: bool
    NoMvP: bool
    ImmutableWorld: bool
    ShowNameTags: bool
    AutoJump: bool
    def __init__(self, /, *,
        NoPvM: bool = ...,
        NoMvP: bool = ...,
        ImmutableWorld: bool = ...,
        ShowNameTags: bool = ...,
        AutoJump: bool = ...,
    ) -> None: ...

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