soulfire.BlockSnapshot

class soulfire.BlockSnapshot(position: soulfire.common_pb2.BlockPosition | collections.abc.Mapping | None = ..., block_id: str | None = ..., properties: collections.abc.Mapping[str, str] | None = ..., block_entity: google.protobuf.struct_pb2.Struct | collections.abc.Mapping | None = ..., biome_id: str | None = ..., sky_light: int | None = ..., block_light: int | None = ..., hardness: float | None = ..., diggable: bool = ..., replaceable: bool = ..., solid: bool = ..., interactive: bool = ..., effective_tool_tags: collections.abc.Iterable[str] | None = ..., fluid: FluidSnapshot | collections.abc.Mapping | None = ..., collision_shape: VoxelShape | collections.abc.Mapping | None = ..., interaction_shape: VoxelShape | collections.abc.Mapping | None = ..., chunk_revision: int | None = ...)

Bases: google.protobuf.message.Message

Abstract base class for protocol messages.

Protocol message classes are almost always generated by the protocol compiler. These generated types subclass Message and implement the methods shown below.

POSITION_FIELD_NUMBER: ClassVar[int]
BLOCK_ID_FIELD_NUMBER: ClassVar[int]
PROPERTIES_FIELD_NUMBER: ClassVar[int]
BLOCK_ENTITY_FIELD_NUMBER: ClassVar[int]
BIOME_ID_FIELD_NUMBER: ClassVar[int]
SKY_LIGHT_FIELD_NUMBER: ClassVar[int]
BLOCK_LIGHT_FIELD_NUMBER: ClassVar[int]
HARDNESS_FIELD_NUMBER: ClassVar[int]
DIGGABLE_FIELD_NUMBER: ClassVar[int]
REPLACEABLE_FIELD_NUMBER: ClassVar[int]
SOLID_FIELD_NUMBER: ClassVar[int]
INTERACTIVE_FIELD_NUMBER: ClassVar[int]
EFFECTIVE_TOOL_TAGS_FIELD_NUMBER: ClassVar[int]
FLUID_FIELD_NUMBER: ClassVar[int]
COLLISION_SHAPE_FIELD_NUMBER: ClassVar[int]
INTERACTION_SHAPE_FIELD_NUMBER: ClassVar[int]
CHUNK_REVISION_FIELD_NUMBER: ClassVar[int]
position: soulfire.common_pb2.BlockPosition
block_id: str
properties: google.protobuf.internal.containers.ScalarMap[str, str]
block_entity: google.protobuf.struct_pb2.Struct
biome_id: str
sky_light: int
block_light: int
hardness: float
diggable: bool
replaceable: bool
solid: bool
interactive: bool
effective_tool_tags: google.protobuf.internal.containers.RepeatedScalarFieldContainer[str]
fluid: FluidSnapshot
collision_shape: VoxelShape
interaction_shape: VoxelShape
chunk_revision: int

Classes

PropertiesEntry

Abstract base class for protocol messages.