use of net.minecraft.client.settings.GameSettings in project Almura by AlmuraDev.
the class AlmuraSettings method checkFirstLaunched.
public static void checkFirstLaunched() {
final GameSettings settings = Minecraft.getMinecraft().gameSettings;
optimizeGame();
if (!settings.resourcePacks.contains(AlmuraSettings.getFontTexturePack())) {
AlmuraSettings.applyFontTexturePack();
}
if (!settings.resourcePacks.contains(AlmuraSettings.getPreferredTexturePack())) {
new ApplyTexturePackConfirmGui(null).display();
} else {
new PanoramicMainMenu(null).display();
}
setFirstLaunched(false);
}
use of net.minecraft.client.settings.GameSettings in project CodeChickenLib by Chicken-Bones.
the class TextureSpecial method addFrame.
public void addFrame(int[] data, int width, int height) {
GameSettings settings = Minecraft.getMinecraft().gameSettings;
BufferedImage[] images = new BufferedImage[settings.mipmapLevels + 1];
images[0] = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
images[0].setRGB(0, 0, width, height, data, 0, width);
loadSprite(images, null);
}
Aggregations