外观
协议模型:L · 1
选择模型查看构造参数和字段,代码块保留完整模型名称。... 表示可省略的字段,省略时使用该类型的零值。
LabTableLabTableCombineStackRequestActionLastShapeLecternUpdateLegacySetItemSlotLessonProgressLevelChunkLevelEventLevelEventGenericLevelSoundEventLineShapeListLocationLocation_Login
LabTable
继承 Packet。
python
class LabTable(_Packet):
packet_id: ClassVar[int] = 109
packet_name: ClassVar[str] = 'LabTable'
ActionType: int
Position: list[int] | tuple[int, ...]
ReactionType: int
def __init__(self, /, *,
ActionType: int = ...,
Position: list[int] | tuple[int, ...] = ...,
ReactionType: int = ...,
) -> None: ...LabTableCombineStackRequestAction
继承 Struct。
python
class LabTableCombineStackRequestAction(_Struct):
def __init__(self) -> None: ...LastShape
继承 Struct。
python
class LastShape(_Struct):
def __init__(self) -> None: ...LecternUpdate
继承 Packet。
python
class LecternUpdate(_Packet):
packet_id: ClassVar[int] = 125
packet_name: ClassVar[str] = 'LecternUpdate'
Page: int
PageCount: int
Position: list[int] | tuple[int, ...]
def __init__(self, /, *,
Page: int = ...,
PageCount: int = ...,
Position: list[int] | tuple[int, ...] = ...,
) -> None: ...LegacySetItemSlot
继承 Struct。
python
class LegacySetItemSlot(_Struct):
ContainerID: int
Slots: bytes | None
def __init__(self, /, *,
ContainerID: int = ...,
Slots: bytes | None = ...,
) -> None: ...LessonProgress
继承 Packet。
python
class LessonProgress(_Packet):
packet_id: ClassVar[int] = 183
packet_name: ClassVar[str] = 'LessonProgress'
Identifier: str | StringBytes
Action: int
Score: int
def __init__(self, /, *,
Identifier: str | StringBytes = ...,
Action: int = ...,
Score: int = ...,
) -> None: ...LevelChunk
继承 Packet。
python
class LevelChunk(_Packet):
packet_id: ClassVar[int] = 58
packet_name: ClassVar[str] = 'LevelChunk'
Position: list[int] | tuple[int, ...]
Dimension: int
HighestSubChunk: int
SubChunkCount: int
CacheEnabled: bool
BlobHashes: list[int] | tuple[int, ...] | None
RawPayload: bytes | None
def __init__(self, /, *,
Position: list[int] | tuple[int, ...] = ...,
Dimension: int = ...,
HighestSubChunk: int = ...,
SubChunkCount: int = ...,
CacheEnabled: bool = ...,
BlobHashes: list[int] | tuple[int, ...] | None = ...,
RawPayload: bytes | None = ...,
) -> None: ...LevelEvent
继承 Packet。
python
class LevelEvent(_Packet):
packet_id: ClassVar[int] = 25
packet_name: ClassVar[str] = 'LevelEvent'
EventType: int
Position: list[float | FloatBits] | tuple[float | FloatBits, ...]
EventData: int
def __init__(self, /, *,
EventType: int = ...,
Position: list[float | FloatBits] | tuple[float | FloatBits, ...] = ...,
EventData: int = ...,
) -> None: ...LevelEventGeneric
继承 Packet。
python
class LevelEventGeneric(_Packet):
packet_id: ClassVar[int] = 124
packet_name: ClassVar[str] = 'LevelEventGeneric'
EventID: int
SerialisedEventData: bytes | None
def __init__(self, /, *,
EventID: int = ...,
SerialisedEventData: bytes | None = ...,
) -> None: ...LevelSoundEvent
继承 Packet。
python
class LevelSoundEvent(_Packet):
packet_id: ClassVar[int] = 123
packet_name: ClassVar[str] = 'LevelSoundEvent'
SoundType: int
Position: list[float | FloatBits] | tuple[float | FloatBits, ...]
ExtraData: int
EntityType: str | StringBytes
BabyMob: bool
DisableRelativeVolume: bool
EntityUniqueID: int
def __init__(self, /, *,
SoundType: int = ...,
Position: list[float | FloatBits] | tuple[float | FloatBits, ...] = ...,
ExtraData: int = ...,
EntityType: str | StringBytes = ...,
BabyMob: bool = ...,
DisableRelativeVolume: bool = ...,
EntityUniqueID: int = ...,
) -> None: ...LineShape
继承 Struct。
python
class LineShape(_Struct):
LineEndLocation: list[float | FloatBits] | tuple[float | FloatBits, ...]
def __init__(self, /, *,
LineEndLocation: list[float | FloatBits] | tuple[float | FloatBits, ...] = ...,
) -> None: ...List
继承 Struct。
python
class List(_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: ...Location
继承 Struct。
python
class Location(_Struct):
def __init__(self) -> None: ...Location_
继承 Struct。
python
class Location_(_Struct):
def __init__(self) -> None: ...Login
继承 Packet。
python
class Login(_Packet):
packet_id: ClassVar[int] = 1
packet_name: ClassVar[str] = 'Login'
ClientProtocol: int
ConnectionRequest: bytes | None
def __init__(self, /, *,
ClientProtocol: int = ...,
ConnectionRequest: bytes | None = ...,
) -> None: ...