2022-05-28 23:20:15 +00:00
|
|
|
import lib.code.version
|
2022-10-02 17:29:47 +00:00
|
|
|
import lib.code.shapes
|
2022-05-28 23:20:15 +00:00
|
|
|
import lib.code.packet
|
|
|
|
import lib.code.blocks
|
|
|
|
import lib.code.utils
|
|
|
|
import lib.download
|
|
|
|
import lib.extract
|
2022-06-10 00:37:03 +00:00
|
|
|
import lib.utils
|
2022-05-28 23:20:15 +00:00
|
|
|
|
|
|
|
version_id = lib.code.version.get_version_id()
|
|
|
|
|
2022-10-02 17:29:47 +00:00
|
|
|
shape_datas = lib.extract.get_generator_mod_data(
|
|
|
|
version_id, 'blockCollisionShapes')
|
2022-06-10 00:37:03 +00:00
|
|
|
|
|
|
|
mappings = lib.download.get_mappings_for_version(version_id)
|
2022-06-10 20:06:15 +00:00
|
|
|
block_states_burger = lib.extract.get_block_states_burger(version_id)
|
2022-06-11 22:33:58 +00:00
|
|
|
ordered_blocks = lib.extract.get_ordered_blocks_burger(version_id)
|
2022-06-10 20:06:15 +00:00
|
|
|
block_states_report = lib.extract.get_block_states_report(version_id)
|
2022-05-28 23:20:15 +00:00
|
|
|
|
2022-06-11 22:33:58 +00:00
|
|
|
lib.code.blocks.generate_blocks(
|
|
|
|
block_states_burger, block_states_report, ordered_blocks, mappings)
|
2022-08-28 01:31:21 +00:00
|
|
|
|
2022-10-02 17:29:47 +00:00
|
|
|
lib.code.shapes.generate_block_shapes(
|
|
|
|
shape_datas['blocks'], shape_datas['shapes'], block_states_report, block_states_burger, mappings)
|
|
|
|
|
2022-08-28 01:31:21 +00:00
|
|
|
lib.code.utils.fmt()
|
|
|
|
|
|
|
|
print('Done!')
|