soulfire.ItemStackSnapshot¶
- class soulfire.ItemStackSnapshot(item_id: str | None = ..., count: int | None = ..., max_stack_size: int | None = ..., damage: int | None = ..., max_damage: int | None = ..., custom_name: TextComponent | collections.abc.Mapping | None = ..., lore: collections.abc.Iterable[TextComponent | collections.abc.Mapping] | None = ..., enchantments: collections.abc.Iterable[EnchantmentSnapshot | collections.abc.Mapping] | None = ..., food: FoodProperties | collections.abc.Mapping | None = ..., tool: ToolProperties | collections.abc.Mapping | None = ..., armor: ArmorProperties | collections.abc.Mapping | None = ..., components: google.protobuf.struct_pb2.Struct | collections.abc.Mapping | None = ..., custom_data_nbt: bytes | None = ..., fingerprint: str | None = ..., potion: PotionProperties | collections.abc.Mapping | None = ...)¶
Bases:
google.protobuf.message.MessageAbstract 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.
- ITEM_ID_FIELD_NUMBER: ClassVar[int]¶
- COUNT_FIELD_NUMBER: ClassVar[int]¶
- MAX_STACK_SIZE_FIELD_NUMBER: ClassVar[int]¶
- DAMAGE_FIELD_NUMBER: ClassVar[int]¶
- MAX_DAMAGE_FIELD_NUMBER: ClassVar[int]¶
- CUSTOM_NAME_FIELD_NUMBER: ClassVar[int]¶
- LORE_FIELD_NUMBER: ClassVar[int]¶
- ENCHANTMENTS_FIELD_NUMBER: ClassVar[int]¶
- FOOD_FIELD_NUMBER: ClassVar[int]¶
- TOOL_FIELD_NUMBER: ClassVar[int]¶
- ARMOR_FIELD_NUMBER: ClassVar[int]¶
- COMPONENTS_FIELD_NUMBER: ClassVar[int]¶
- CUSTOM_DATA_NBT_FIELD_NUMBER: ClassVar[int]¶
- FINGERPRINT_FIELD_NUMBER: ClassVar[int]¶
- POTION_FIELD_NUMBER: ClassVar[int]¶
- item_id: str¶
- count: int¶
- max_stack_size: int¶
- damage: int¶
- max_damage: int¶
- custom_name: TextComponent¶
- lore: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[TextComponent]¶
- enchantments: google.protobuf.internal.containers.RepeatedCompositeFieldContainer[EnchantmentSnapshot]¶
- food: FoodProperties¶
- tool: ToolProperties¶
- armor: ArmorProperties¶
- components: google.protobuf.struct_pb2.Struct¶
- custom_data_nbt: bytes¶
- fingerprint: str¶
- potion: PotionProperties¶