跳转到正文

协议模型:B · 3 ​

全部模型 · 协议包用法

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

BlockPos__Dimension_int3…sion_string_ ​

继承 Struct。

python
class BlockPos__Dimension_int32__EngineVersion_string_(_Struct):
    EntityRuntimeID: int
    EntityMetadata: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
    EncodingIdentifier: str | StringBytes
    InstanceIdentifier: str | StringBytes
    Bounds: list[list[int] | tuple[int, ...]] | tuple[list[int] | tuple[int, ...], ...]
    Dimension: int
    EngineVersion: str | StringBytes
    def __init__(self, /, *,
        EntityRuntimeID: int = ...,
        EntityMetadata: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
        EncodingIdentifier: str | StringBytes = ...,
        InstanceIdentifier: str | StringBytes = ...,
        Bounds: list[list[int] | tuple[int, ...]] | tuple[list[int] | tuple[int, ...], ...] = ...,
        Dimension: int = ...,
        EngineVersion: str | StringBytes = ...,
    ) -> None: ...

BlockPos__EventType_int3…tData_int32_ ​

继承 Struct。

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

BlockPos__Face_int32_ ​

继承 Struct。

python
class BlockPos__Face_int32_(_Struct):
    Action: int
    BlockPos: list[int] | tuple[int, ...]
    Face: int
    def __init__(self, /, *,
        Action: int = ...,
        BlockPos: list[int] | tuple[int, ...] = ...,
        Face: int = ...,
    ) -> None: ...

BlockPos__FrontSide_bool_ ​

继承 Struct。

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

BlockPos__Mode_uint32__N…stTick_bool_ ​

继承 Struct。

python
class BlockPos__Mode_uint32__NeedsRedstone_bool__Conditional_bool__MinecartEntityRuntimeID_uint64__Command_string__LastOutput_string__Name_string__FilteredName_string__ShouldTrackOutput_bool__TickDelay_uint32__ExecuteOnFirstTick_bool_(_Struct):
    Block: bool
    Position: list[int] | tuple[int, ...]
    Mode: int
    NeedsRedstone: bool
    Conditional: bool
    MinecartEntityRuntimeID: int
    Command: str | StringBytes
    LastOutput: str | StringBytes
    Name: str | StringBytes
    FilteredName: str | StringBytes
    ShouldTrackOutput: bool
    TickDelay: int
    ExecuteOnFirstTick: bool
    def __init__(self, /, *,
        Block: bool = ...,
        Position: list[int] | tuple[int, ...] = ...,
        Mode: int = ...,
        NeedsRedstone: bool = ...,
        Conditional: bool = ...,
        MinecartEntityRuntimeID: int = ...,
        Command: str | StringBytes = ...,
        LastOutput: str | StringBytes = ...,
        Name: str | StringBytes = ...,
        FilteredName: str | StringBytes = ...,
        ShouldTrackOutput: bool = ...,
        TickDelay: int = ...,
        ExecuteOnFirstTick: bool = ...,
    ) -> None: ...

BlockPos__NBTData_map_string_any_ ​

继承 Struct。

python
class BlockPos__NBTData_map_string_any_(_Struct):
    Position: list[int] | tuple[int, ...]
    NBTData: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None
    def __init__(self, /, *,
        Position: list[int] | tuple[int, ...] = ...,
        NBTData: dict[str | StringBytes, DynamicValue | UnionValue | _Struct | None] | None = ...,
    ) -> None: ...

BlockPos__NewBlockRuntim…ayer_uint32_ ​

继承 Struct。

python
class BlockPos__NewBlockRuntimeID_uint32__Flags_uint32__Layer_uint32_(_Struct):
    Position: list[int] | tuple[int, ...]
    NewBlockRuntimeID: int
    Flags: int
    Layer: int
    def __init__(self, /, *,
        Position: list[int] | tuple[int, ...] = ...,
        NewBlockRuntimeID: int = ...,
        Flags: int = ...,
        Layer: int = ...,
    ) -> None: ...

BlockPos__NewBlockRuntim…Type_uint64_ ​

继承 Struct。

python
class BlockPos__NewBlockRuntimeID_uint32__Flags_uint32__Layer_uint32__EntityUniqueID_uint64__TransitionType_uint64_(_Struct):
    Position: list[int] | tuple[int, ...]
    NewBlockRuntimeID: int
    Flags: int
    Layer: int
    EntityUniqueID: int
    TransitionType: int
    def __init__(self, /, *,
        Position: list[int] | tuple[int, ...] = ...,
        NewBlockRuntimeID: int = ...,
        Flags: int = ...,
        Layer: int = ...,
        EntityUniqueID: int = ...,
        TransitionType: int = ...,
    ) -> None: ...

BlockPos__ReactionType_byte_ ​

继承 Struct。

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

BlockPos__StopOnError_bo…Batch_int32_ ​

继承 Struct。

python
class BlockPos__StopOnError_bool__TestsPerRow_int32__MaxTestsPerBatch_int32_(_Struct):
    Name: str | StringBytes
    Rotation: int
    Repetitions: int
    Position: list[int] | tuple[int, ...]
    StopOnError: bool
    TestsPerRow: int
    MaxTestsPerBatch: int
    def __init__(self, /, *,
        Name: str | StringBytes = ...,
        Rotation: int = ...,
        Repetitions: int = ...,
        Position: list[int] | tuple[int, ...] = ...,
        StopOnError: bool = ...,
        TestsPerRow: int = ...,
        MaxTestsPerBatch: int = ...,
    ) -> None: ...

BlockPos__struct_Flag_bo…ol_BlockPos_ ​

继承 Struct。

python
class BlockPos__struct_Flag_bool__Dimension_int32__BiomeName_string__Pos1_github_com_OmineDev_neomega_core_minecraft_protocol_BlockPos__Pos2_github_com_OmineDev_neomega_core_minecraft_protocol_BlockPos_(_Struct):
    Flag: bool
    Dimension: int
    BiomeName: str | StringBytes
    Pos1: list[int] | tuple[int, ...]
    Pos2: list[int] | tuple[int, ...]
    def __init__(self, /, *,
        Flag: bool = ...,
        Dimension: int = ...,
        BiomeName: str | StringBytes = ...,
        Pos1: list[int] | tuple[int, ...] = ...,
        Pos2: list[int] | tuple[int, ...] = ...,
    ) -> None: ...

BlockPos__struct_Page_by…ol_BlockPos_ ​

继承 Struct。

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

BlockPos__struct_Positio…ol_BlockPos_ ​

继承 Struct。

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

BlockPos__struct_SpawnTy…ol_BlockPos_ ​

继承 Struct。

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

BlockPos__struct_Type_in…ol_BlockPos_ ​

继承 Struct。

python
class BlockPos__struct_Type_int32__EntityUniqueID_int64__BlockPosition_github_com_OmineDev_neomega_core_minecraft_protocol_BlockPos_(_Struct):
    Type: int
    EntityUniqueID: int
    BlockPosition: list[int] | tuple[int, ...]
    def __init__(self, /, *,
        Type: int = ...,
        EntityUniqueID: int = ...,
        BlockPosition: list[int] | tuple[int, ...] = ...,
    ) -> None: ...

BookEdit ​

继承 Packet。

python
class BookEdit(_Packet):
    packet_id: ClassVar[int] = 97
    packet_name: ClassVar[str] = 'BookEdit'
    ActionType: int
    InventorySlot: int
    PageNumber: int
    SecondaryPageNumber: int
    Text: str | StringBytes
    PhotoName: str | StringBytes
    Title: str | StringBytes
    Author: str | StringBytes
    XUID: str | StringBytes
    def __init__(self, /, *,
        ActionType: int = ...,
        InventorySlot: int = ...,
        PageNumber: int = ...,
        SecondaryPageNumber: int = ...,
        Text: str | StringBytes = ...,
        PhotoName: str | StringBytes = ...,
        Title: str | StringBytes = ...,
        Author: str | StringBytes = ...,
        XUID: str | StringBytes = ...,
    ) -> None: ...

BossEvent ​

继承 Packet。

python
class BossEvent(_Packet):
    packet_id: ClassVar[int] = 74
    packet_name: ClassVar[str] = 'BossEvent'
    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: ...

BossKilledEvent ​

继承 Struct。

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

BoxShape ​

继承 Struct。

python
class BoxShape(_Struct):
    BoxBound: list[float | FloatBits] | tuple[float | FloatBits, ...]
    def __init__(self, /, *,
        BoxBound: list[float | FloatBits] | tuple[float | FloatBits, ...] = ...,
    ) -> None: ...

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