外观
协议模型:G · 1
选择模型查看构造参数和字段,代码块保留完整模型名称。... 表示可省略的字段,省略时使用该类型的零值。
GameRuleGameRule_GameRulesChangedGameTestRequestGameTestResultsGenerationFeatureGenerationFeature_GraphicsOverrideParameterGUIDataPickItem
GameRule
继承 Struct。
python
class GameRule(_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: ...GameRule_
继承 Struct。
python
class GameRule_(_Struct):
GameRules: list[GameRule] | tuple[GameRule, ...] | None
def __init__(self, /, *,
GameRules: list[GameRule] | tuple[GameRule, ...] | None = ...,
) -> None: ...相关字段类型:GameRule。
GameRulesChanged
继承 Packet。
python
class GameRulesChanged(_Packet):
packet_id: ClassVar[int] = 72
packet_name: ClassVar[str] = 'GameRulesChanged'
GameRules: list[GameRule] | tuple[GameRule, ...] | None
def __init__(self, /, *,
GameRules: list[GameRule] | tuple[GameRule, ...] | None = ...,
) -> None: ...相关字段类型:GameRule。
GameTestRequest
继承 Packet。
python
class GameTestRequest(_Packet):
packet_id: ClassVar[int] = 194
packet_name: ClassVar[str] = 'GameTestRequest'
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: ...GameTestResults
继承 Packet。
python
class GameTestResults(_Packet):
packet_id: ClassVar[int] = 195
packet_name: ClassVar[str] = 'GameTestResults'
Name: str | StringBytes
Succeeded: bool
Error: str | StringBytes
def __init__(self, /, *,
Name: str | StringBytes = ...,
Succeeded: bool = ...,
Error: str | StringBytes = ...,
) -> None: ...GenerationFeature
继承 Struct。
python
class GenerationFeature(_Struct):
Name: str | StringBytes
JSON: bytes | None
def __init__(self, /, *,
Name: str | StringBytes = ...,
JSON: bytes | None = ...,
) -> None: ...GenerationFeature_
继承 Struct。
python
class GenerationFeature_(_Struct):
Features: list[GenerationFeature] | tuple[GenerationFeature, ...] | None
def __init__(self, /, *,
Features: list[GenerationFeature] | tuple[GenerationFeature, ...] | None = ...,
) -> None: ...相关字段类型:GenerationFeature。
GraphicsOverrideParameter
继承 Packet。
python
class GraphicsOverrideParameter(_Packet):
packet_id: ClassVar[int] = 331
packet_name: ClassVar[str] = 'GraphicsOverrideParameter'
Values: list[ParameterKeyframeValue] | tuple[ParameterKeyframeValue, ...] | None
BiomeIdentifier: str | StringBytes
ParameterType: int
Reset: bool
def __init__(self, /, *,
Values: list[ParameterKeyframeValue] | tuple[ParameterKeyframeValue, ...] | None = ...,
BiomeIdentifier: str | StringBytes = ...,
ParameterType: int = ...,
Reset: bool = ...,
) -> None: ...相关字段类型:ParameterKeyframeValue。
GUIDataPickItem
继承 Packet。
python
class GUIDataPickItem(_Packet):
packet_id: ClassVar[int] = 54
packet_name: ClassVar[str] = 'GUIDataPickItem'
ItemName: str | StringBytes
ItemEffects: str | StringBytes
HotBarSlot: int
def __init__(self, /, *,
ItemName: str | StringBytes = ...,
ItemEffects: str | StringBytes = ...,
HotBarSlot: int = ...,
) -> None: ...