Skip to main content

Module entity

Module entity 

Source
Expand description

Vintage Story block entity functionality.

Structs§

BlockEntities
Vintage Story block entity data.
ItemStack
An ItemStack.

Enums§

ItemClass
An ItemStack’s item class.
Value
A tree attribute value.

Functions§

encode_array
Encodes an array of T as a length-prefixed array of little endian Ts. The length prefix is a 32-bit little endian signed integer.
encode_entities
Encodes an EntityMap by calling Value::encode on each value.
encode_seven_bit_int
Encodes a “seven bit integer” as read by C#’s BinaryReader.
parse_array
Parses an array of values of type T.
parse_encoded_entities
Parse ASCII85-encoded Vintage Story block entity data.
parse_entities
Parse Vintage Story block entity data.
parse_item_stack
Parses an ItemStack.
parse_seven_bit_int
Parses a “seven bit integer” as read by C#’s BinaryReader.
parse_string
Parses a string with a “seven bit int” length prefix.

Type Aliases§

BlockEntityMap
Mapping of block entity IDs to their associated EntityMaps.