broese / mcbuild

A custom Minecraft client with advanced auto-building capabilities
26 stars 11 forks source link

Simplify metadata handling #28

Open broese opened 5 years ago

broese commented 5 years ago

Metadata has a very convoluted format. Currently we provide full interpretation of the data fields, depending on the entity type etc. This is for the most part completely unnecessary and requires heavy maintenance

Fetch metadata and store it as a raw string and only decode when necessary. Get rid of METANAME and ENTITY_HIERARCHY and related routines. When dumping metadata, just present raw type/value. When metadata values are actually used (e.g. in autoshear), decode the raw data and fetch the element at known index.