13 lines
307 B
Bash
Executable File
13 lines
307 B
Bash
Executable File
#!/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 <<EOF
|
|
|
|
public override Tuple<int, int> GetIconTexture(byte metadata)
|
|
{
|
|
return new Tuple<int, int>($x, $y);
|
|
}
|
|
EOF
|