跳转到正文

协议模型:S · 7 ​

全部模型 · 协议包用法

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

struct_Count_byte__mapst…mitempty____ ​

继承 Struct。

python
class struct_Count_byte__mapstructure___Count_____Damage_int16__mapstructure___Damage_____Name_string__mapstructure___Name_____WasPickedUp_byte__mapstructure___WasPickedUp_____Block_map_string_any__mapstructure___Block_omitempty_____Tag_map_string_any__mapstructure___tag_omitempty_____ModBlock_map_string_any__mapstructure___modBlock_omitempty_____CanDestroy___any__mapstructure___CanDestroy_omitempty_____CanPlaceOn___any__mapstructure___CanPlaceOn_omitempty____(_Struct):
    Count: int
    Damage: int
    Name: str | StringBytes
    WasPickedUp: int
    Block: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
    Tag: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
    ModBlock: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
    CanDestroy: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None
    CanPlaceOn: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None
    def __init__(self, /, *,
        Count: int = ...,
        Damage: int = ...,
        Name: str | StringBytes = ...,
        WasPickedUp: int = ...,
        Block: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
        Tag: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
        ModBlock: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
        CanDestroy: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None = ...,
        CanPlaceOn: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None = ...,
    ) -> None: ...

struct_CreativeItemNetwo…Crafts_byte_ ​

继承 Struct。

python
class struct_CreativeItemNetworkID_uint32__NumberOfCrafts_byte_(_Struct):
    CreativeItemNetworkID: int
    NumberOfCrafts: int
    def __init__(self, /, *,
        CreativeItemNetworkID: int = ...,
        NumberOfCrafts: int = ...,
    ) -> None: ...

struct_CurrentFeature_string_ ​

继承 Struct。

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

struct_CurrentRaidWave_i…onRaid_bool_ ​

继承 Struct。

python
class struct_CurrentRaidWave_int32__TotalRaidWaves_int32__WonRaid_bool_(_Struct):
    CurrentRaidWave: int
    TotalRaidWaves: int
    WonRaid: bool
    def __init__(self, /, *,
        CurrentRaidWave: int = ...,
        TotalRaidWaves: int = ...,
        WonRaid: bool = ...,
    ) -> None: ...

struct_Data___byte_ ​

继承 Struct。

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

struct_DataStoreName_string_ ​

继承 Struct。

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

struct_DataStoreName_str…ount_uint32_ ​

继承 Struct。

python
class struct_DataStoreName_string__Property_string__Path_string__ControlType_uint32__DoubleValue_float64__BoolValue_bool__StringValue_string__PropertyUpdateCount_uint32__PathUpdateCount_uint32_(_Struct):
    DataStoreName: str | StringBytes
    Property: str | StringBytes
    Path: str | StringBytes
    ControlType: int
    DoubleValue: float | FloatBits
    BoolValue: bool
    StringValue: str | StringBytes
    PropertyUpdateCount: int
    PathUpdateCount: int
    def __init__(self, /, *,
        DataStoreName: str | StringBytes = ...,
        Property: str | StringBytes = ...,
        Path: str | StringBytes = ...,
        ControlType: int = ...,
        DoubleValue: float | FloatBits = ...,
        BoolValue: bool = ...,
        StringValue: str | StringBytes = ...,
        PropertyUpdateCount: int = ...,
        PathUpdateCount: int = ...,
    ) -> None: ...

struct_Difficulty_uint32_ ​

继承 Struct。

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

struct_DimensionID_int32_ ​

继承 Struct。

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

struct_DimensionID_uint8…rCycle_bool_ ​

继承 Struct。

python
class struct_DimensionID_uint8__RainLevel_float32__RainTime_int32__LightningLevel_float32__LightningTime_int32__IsWeatherCycle_bool_(_Struct):
    DimensionID: int
    RainLevel: float | FloatBits
    RainTime: int
    LightningLevel: float | FloatBits
    LightningTime: int
    IsWeatherCycle: bool
    def __init__(self, /, *,
        DimensionID: int = ...,
        RainLevel: float | FloatBits = ...,
        RainTime: int = ...,
        LightningLevel: float | FloatBits = ...,
        LightningTime: int = ...,
        IsWeatherCycle: bool = ...,
    ) -> None: ...

struct_DisplaySlot_strin…Order_int32_ ​

继承 Struct。

python
class struct_DisplaySlot_string__ObjectiveName_string__DisplayName_string__CriteriaName_string__SortOrder_int32_(_Struct):
    DisplaySlot: str | StringBytes
    ObjectiveName: str | StringBytes
    DisplayName: str | StringBytes
    CriteriaName: str | StringBytes
    SortOrder: int
    def __init__(self, /, *,
        DisplaySlot: str | StringBytes = ...,
        ObjectiveName: str | StringBytes = ...,
        DisplayName: str | StringBytes = ...,
        CriteriaName: str | StringBytes = ...,
        SortOrder: int = ...,
    ) -> None: ...

struct_Elements___int32_…ility_int32_ ​

继承 Struct。

python
class struct_Elements___int32__Visibility_int32_(_Struct):
    Elements: list[int] | tuple[int, ...] | None
    Visibility: int
    def __init__(self, /, *,
        Elements: list[int] | tuple[int, ...] | None = ...,
        Visibility: int = ...,
    ) -> None: ...

struct_ElementType_byte__Values___any_ ​

继承 Struct。

python
class struct_ElementType_byte__Values___any_(_Struct):
    ElementType: int
    Values: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None
    def __init__(self, /, *,
        ElementType: int = ...,
        Values: list[DynamicValue | UnionValue | _Struct | None] | tuple[DynamicValue | UnionValue | _Struct | None, ...] | None = ...,
    ) -> None: ...

struct_Enabled_bool_ ​

继承 Struct。

python
class struct_Enabled_bool_(_Struct):
    Enabled: bool
    def __init__(self, /, *,
        Enabled: bool = ...,
    ) -> None: ...

struct_EntityRuntimeID_u…nsion_int32_ ​

继承 Struct。

python
class struct_EntityRuntimeID_uint32__Dimension_int32_(_Struct):
    EntityRuntimeID: int
    Dimension: int
    def __init__(self, /, *,
        EntityRuntimeID: int = ...,
        Dimension: int = ...,
    ) -> None: ...

struct_EntityRuntimeID_uint64_ ​

继承 Struct。

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

struct_EntityRuntimeID_u…_Flags_byte_ ​

继承 Struct。

python
class struct_EntityRuntimeID_uint64__EmoteLength_uint32__EmoteID_string__XUID_string__PlatformID_string__Flags_byte_(_Struct):
    EntityRuntimeID: int
    EmoteLength: int
    EmoteID: str | StringBytes
    XUID: str | StringBytes
    PlatformID: str | StringBytes
    Flags: int
    def __init__(self, /, *,
        EntityRuntimeID: int = ...,
        EmoteLength: int = ...,
        EmoteID: str | StringBytes = ...,
        XUID: str | StringBytes = ...,
        PlatformID: str | StringBytes = ...,
        Flags: int = ...,
    ) -> None: ...

struct_EntityRuntimeID_u…tData_int32_ ​

继承 Struct。

python
class struct_EntityRuntimeID_uint64__EventType_byte__EventData_int32_(_Struct):
    EntityRuntimeID: int
    EventType: int
    EventData: int
    def __init__(self, /, *,
        EntityRuntimeID: int = ...,
        EventType: int = ...,
        EventData: int = ...,
    ) -> None: ...

struct_EntityRuntimeID_u…Name_string_ ​

继承 Struct。

python
class struct_EntityRuntimeID_uint64__ModelName_string_(_Struct):
    EntityRuntimeID: int
    ModelName: str | StringBytes
    def __init__(self, /, *,
        EntityRuntimeID: int = ...,
        ModelName: str | StringBytes = ...,
    ) -> None: ...

struct_EntityRuntimeID_u…Tick_uint64_ ​

继承 Struct。

python
class struct_EntityRuntimeID_uint64__Operation_byte__EffectType_int32__Amplifier_int32__Particles_bool__Duration_int32__Tick_uint64_(_Struct):
    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: ...

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