All Downloads are FREE. Search and download functionalities are using the official Maven repository.

think.rpgitems.data.Font Maven / Gradle / Ivy

There is a newer version: 3.12.2
Show newest version
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();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy