think.rpgitems.data.Font Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpgitems Show documentation
Show all versions of rpgitems Show documentation
The legacy RPGItems continues. (fork)
package think.rpgitems.data;
import think.rpgitems.RPGItems;
import java.io.IOException;
import java.io.InputStream;
public class Font {
public static int[] widths;
public static void load() {
widths = new int[0xFFFF];
try {
InputStream in = RPGItems.plugin.getResource("font.bin");
for (int i = 0; i < widths.length; i++) {
widths[i] = in.read();
}
in.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}