mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-20 07:02:31 +00:00
86cc2a9b7c
Preparation for azalea-block
19 lines
616 B
Python
19 lines
616 B
Python
import lib.code.packet
|
|
import lib.code.utils
|
|
import lib.download
|
|
import lib.extract
|
|
import sys
|
|
|
|
mappings = lib.download.get_mappings_for_version('1.18.2')
|
|
burger_data = lib.extract.get_burger_data_for_version('1.18.2')
|
|
|
|
burger_packets_data = burger_data[0]['packets']['packet']
|
|
packet_id, direction, state = int(sys.argv[1]), sys.argv[2], sys.argv[3]
|
|
print(
|
|
f'Generating code for packet id: {packet_id} with direction {direction} and state {state}')
|
|
lib.code.packet.generate_packet(burger_packets_data, mappings,
|
|
packet_id, direction, state)
|
|
|
|
lib.code.utils.fmt()
|
|
|
|
print('Done!')
|