跳转到正文

协议模型:A · 2 ​

全部模型 · 协议包用法

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

Animate ​

继承 Packet。

python
class Animate(_Packet):
    packet_id: ClassVar[int] = 44
    packet_name: ClassVar[str] = 'Animate'
    ActionType: int
    EntityRuntimeID: int
    Data: float | FloatBits
    RowingTime: float | FloatBits
    AttackerEntityUniqueID: int
    def __init__(self, /, *,
        ActionType: int = ...,
        EntityRuntimeID: int = ...,
        Data: float | FloatBits = ...,
        RowingTime: float | FloatBits = ...,
        AttackerEntityUniqueID: int = ...,
    ) -> None: ...

AnimateEmoteEntity ​

继承 Packet。

python
class AnimateEmoteEntity(_Packet):
    packet_id: ClassVar[int] = 233
    packet_name: ClassVar[str] = 'AnimateEmoteEntity'
    Animation: str | StringBytes
    NextState: str | StringBytes
    StopExpression: str | StringBytes
    StopExpressionVersion: int
    Controller: str | StringBytes
    BlendOutTime: float | FloatBits
    RuntimeEntityIDs: list[int] | tuple[int, ...] | None
    def __init__(self, /, *,
        Animation: str | StringBytes = ...,
        NextState: str | StringBytes = ...,
        StopExpression: str | StringBytes = ...,
        StopExpressionVersion: int = ...,
        Controller: str | StringBytes = ...,
        BlendOutTime: float | FloatBits = ...,
        RuntimeEntityIDs: list[int] | tuple[int, ...] | None = ...,
    ) -> None: ...

AnimateEntity ​

继承 Packet。

python
class AnimateEntity(_Packet):
    packet_id: ClassVar[int] = 158
    packet_name: ClassVar[str] = 'AnimateEntity'
    Animation: str | StringBytes
    NextState: str | StringBytes
    StopCondition: str | StringBytes
    StopConditionVersion: int
    Controller: str | StringBytes
    BlendOutTime: float | FloatBits
    EntityRuntimeIDs: list[int] | tuple[int, ...] | None
    def __init__(self, /, *,
        Animation: str | StringBytes = ...,
        NextState: str | StringBytes = ...,
        StopCondition: str | StringBytes = ...,
        StopConditionVersion: int = ...,
        Controller: str | StringBytes = ...,
        BlendOutTime: float | FloatBits = ...,
        EntityRuntimeIDs: list[int] | tuple[int, ...] | None = ...,
    ) -> None: ...

AnvilDamage ​

继承 Packet。

python
class AnvilDamage(_Packet):
    packet_id: ClassVar[int] = 141
    packet_name: ClassVar[str] = 'AnvilDamage'
    Damage: int
    AnvilPosition: list[int] | tuple[int, ...]
    def __init__(self, /, *,
        Damage: int = ...,
        AnvilPosition: list[int] | tuple[int, ...] = ...,
    ) -> None: ...

ArrowShape ​

继承 Struct。

python
class ArrowShape(_Struct):
    ArrowEndLocation: OptionalValue[list[float | FloatBits] | tuple[float | FloatBits, ...]]
    ArrowHeadLength: OptionalValue[float | FloatBits]
    ArrowHeadRadius: OptionalValue[float | FloatBits]
    Segments: OptionalValue[int]
    def __init__(self, /, *,
        ArrowEndLocation: OptionalValue[list[float | FloatBits] | tuple[float | FloatBits, ...]] = ...,
        ArrowHeadLength: OptionalValue[float | FloatBits] = ...,
        ArrowHeadRadius: OptionalValue[float | FloatBits] = ...,
        Segments: OptionalValue[int] = ...,
    ) -> None: ...

Attribute ​

继承 Struct。

python
class Attribute(_Struct):
    AttributeValue: AttributeValue
    DefaultMin: float | FloatBits
    DefaultMax: float | FloatBits
    Default: float | FloatBits
    Modifiers: list[AttributeModifier] | tuple[AttributeModifier, ...] | None
    def __init__(self, /, *,
        AttributeValue: AttributeValue = ...,
        DefaultMin: float | FloatBits = ...,
        DefaultMax: float | FloatBits = ...,
        Default: float | FloatBits = ...,
        Modifiers: list[AttributeModifier] | tuple[AttributeModifier, ...] | None = ...,
    ) -> None: ...

相关字段类型:AttributeModifier、AttributeValue。

Attribute__Tick_uint64_ ​

继承 Struct。

python
class Attribute__Tick_uint64_(_Struct):
    EntityRuntimeID: int
    Attributes: list[Attribute] | tuple[Attribute, ...] | None
    Tick: int
    def __init__(self, /, *,
        EntityRuntimeID: int = ...,
        Attributes: list[Attribute] | tuple[Attribute, ...] | None = ...,
        Tick: int = ...,
    ) -> None: ...

相关字段类型:Attribute。

AttributeModifier ​

继承 Struct。

python
class AttributeModifier(_Struct):
    ID: str | StringBytes
    Name: str | StringBytes
    Amount: float | FloatBits
    Operation: int
    Operand: int
    Serializable: bool
    def __init__(self, /, *,
        ID: str | StringBytes = ...,
        Name: str | StringBytes = ...,
        Amount: float | FloatBits = ...,
        Operation: int = ...,
        Operand: int = ...,
        Serializable: bool = ...,
    ) -> None: ...

AttributeModifier_ ​

继承 Struct。

python
class AttributeModifier_(_Struct):
    AttributeValue: AttributeValue
    DefaultMin: float | FloatBits
    DefaultMax: float | FloatBits
    Default: float | FloatBits
    Modifiers: list[AttributeModifier] | tuple[AttributeModifier, ...] | None
    def __init__(self, /, *,
        AttributeValue: AttributeValue = ...,
        DefaultMin: float | FloatBits = ...,
        DefaultMax: float | FloatBits = ...,
        Default: float | FloatBits = ...,
        Modifiers: list[AttributeModifier] | tuple[AttributeModifier, ...] | None = ...,
    ) -> None: ...

相关字段类型:AttributeModifier、AttributeValue。

AttributeValue ​

继承 Struct。

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

AutoCraftRecipeStackRequestAction ​

继承 Struct。

python
class AutoCraftRecipeStackRequestAction(_Struct):
    RecipeNetworkID: int
    NumberOfCrafts: int
    TimesCrafted: int
    Ingredients: list[ItemDescriptorCount] | tuple[ItemDescriptorCount, ...] | None
    def __init__(self, /, *,
        RecipeNetworkID: int = ...,
        NumberOfCrafts: int = ...,
        TimesCrafted: int = ...,
        Ingredients: list[ItemDescriptorCount] | tuple[ItemDescriptorCount, ...] | None = ...,
    ) -> None: ...

相关字段类型:ItemDescriptorCount。

AutomationClientConnect ​

继承 Packet。

python
class AutomationClientConnect(_Packet):
    packet_id: ClassVar[int] = 95
    packet_name: ClassVar[str] = 'AutomationClientConnect'
    ServerURI: str | StringBytes
    def __init__(self, /, *,
        ServerURI: str | StringBytes = ...,
    ) -> None: ...

AvailableActorIdentifiers ​

继承 Packet。

python
class AvailableActorIdentifiers(_Packet):
    packet_id: ClassVar[int] = 119
    packet_name: ClassVar[str] = 'AvailableActorIdentifiers'
    SerialisedEntityIdentifiers: bytes | None
    def __init__(self, /, *,
        SerialisedEntityIdentifiers: bytes | None = ...,
    ) -> None: ...

AvailableCommands ​

继承 Packet。

python
class AvailableCommands(_Packet):
    packet_id: ClassVar[int] = 76
    packet_name: ClassVar[str] = 'AvailableCommands'
    EnumValues: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
    ChainedSubcommandValues: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
    Suffixes: list[str | StringBytes] | tuple[str | StringBytes, ...] | None
    Enums: list[CommandEnum] | tuple[CommandEnum, ...] | None
    ChainedSubcommands: list[ChainedSubcommand] | tuple[ChainedSubcommand, ...] | None
    Commands: list[Command] | tuple[Command, ...] | None
    DynamicEnums: list[DynamicEnum] | tuple[DynamicEnum, ...] | None
    Constraints: list[CommandEnumConstraint] | tuple[CommandEnumConstraint, ...] | None
    def __init__(self, /, *,
        EnumValues: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
        ChainedSubcommandValues: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
        Suffixes: list[str | StringBytes] | tuple[str | StringBytes, ...] | None = ...,
        Enums: list[CommandEnum] | tuple[CommandEnum, ...] | None = ...,
        ChainedSubcommands: list[ChainedSubcommand] | tuple[ChainedSubcommand, ...] | None = ...,
        Commands: list[Command] | tuple[Command, ...] | None = ...,
        DynamicEnums: list[DynamicEnum] | tuple[DynamicEnum, ...] | None = ...,
        Constraints: list[CommandEnumConstraint] | tuple[CommandEnumConstraint, ...] | None = ...,
    ) -> None: ...

相关字段类型:ChainedSubcommand、Command、CommandEnum、CommandEnumConstraint、DynamicEnum。

AwardAchievement ​

继承 Packet。

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

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