Search in sources :

Example 16 with GameSettings

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);
}
Also used : ApplyTexturePackConfirmGui(com.almuradev.almura.feature.speed.client.gui.ApplyTexturePackConfirmGui) GameSettings(net.minecraft.client.settings.GameSettings) PanoramicMainMenu(com.almuradev.almura.feature.menu.main.PanoramicMainMenu)

Example 17 with GameSettings

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);
}
Also used : GameSettings(net.minecraft.client.settings.GameSettings) BufferedImage(java.awt.image.BufferedImage)

Aggregations

GameSettings (net.minecraft.client.settings.GameSettings)17 KeyBinding (net.minecraft.client.settings.KeyBinding)5 BlockPos (net.minecraft.util.math.BlockPos)4 SubscribeEvent (net.minecraftforge.fml.common.eventhandler.SubscribeEvent)3 ClientConfiguration (com.almuradev.almura.core.client.config.ClientConfiguration)2 PanoramicMainMenu (com.almuradev.almura.feature.menu.main.PanoramicMainMenu)2 BufferedImage (java.awt.image.BufferedImage)2 Options (net.minecraft.client.settings.GameSettings.Options)2 SoundCategory (net.minecraft.util.SoundCategory)2 Biome (net.minecraft.world.biome.Biome)2 PresetData (org.blockartistry.Presets.api.PresetData)2 BOPBiome (biomesoplenty.common.biome.BOPBiome)1 ResourcePackRepositoryAccessor (com.almuradev.almura.asm.mixin.accessors.client.resources.ResourcePackRepositoryAccessor)1 GeneralCategory (com.almuradev.almura.core.client.config.category.GeneralCategory)1 SimpleIngameMenu (com.almuradev.almura.feature.menu.game.SimpleIngameMenu)1 DisconnectedGui (com.almuradev.almura.feature.menu.main.DisconnectedGui)1 ApplyTexturePackConfirmGui (com.almuradev.almura.feature.speed.client.gui.ApplyTexturePackConfirmGui)1 Field (java.lang.reflect.Field)1 Nonnull (javax.annotation.Nonnull)1 ClientProxy (me.desht.pneumaticcraft.proxy.ClientProxy)1