#!/bin/bash icon=$(cat icons.json | jq ".[] | select(.id==$(printf "%d" $1)) | .icon") x=$(printf "%s" $icon | jq ".x") y=$(printf "%s" $icon | jq ".y") cat < GetIconTexture(byte metadata) { return new Tuple($x, $y); } EOF