當前位置: 首頁>>代碼示例>>Java>>正文


Java Minecraft.isJava64bit方法代碼示例

本文整理匯總了Java中net.minecraft.client.Minecraft.isJava64bit方法的典型用法代碼示例。如果您正苦於以下問題:Java Minecraft.isJava64bit方法的具體用法?Java Minecraft.isJava64bit怎麽用?Java Minecraft.isJava64bit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在net.minecraft.client.Minecraft的用法示例。


在下文中一共展示了Minecraft.isJava64bit方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: GameSettings

import net.minecraft.client.Minecraft; //導入方法依賴的package包/類
public GameSettings(Minecraft mcIn, File p_i46326_2_)
{
    this.keyBindings = (KeyBinding[])ArrayUtils.addAll(new KeyBinding[] {this.keyBindAttack, this.keyBindUseItem, this.keyBindForward, this.keyBindLeft, this.keyBindBack, this.keyBindRight, this.keyBindJump, this.keyBindSneak, this.keyBindSprint, this.keyBindDrop, this.keyBindInventory, this.keyBindChat, this.keyBindPlayerList, this.keyBindPickBlock, this.keyBindCommand, this.keyBindScreenshot, this.keyBindTogglePerspective, this.keyBindSmoothCamera, this.keyBindStreamStartStop, this.keyBindStreamPauseUnpause, this.keyBindStreamCommercials, this.keyBindStreamToggleMic, this.keyBindFullscreen, this.keyBindSpectatorOutlines}, this.keyBindsHotbar);
    this.difficulty = EnumDifficulty.NORMAL;
    this.lastServer = "";
    this.fovSetting = 70.0F;
    this.language = "en_US";
    this.forceUnicodeFont = false;
    this.mc = mcIn;
    this.optionsFile = new File(p_i46326_2_, "options.txt");

    if (mcIn.isJava64bit() && Runtime.getRuntime().maxMemory() >= 1000000000L)
    {
        GameSettings.Options.RENDER_DISTANCE.setValueMax(32.0F);
    }
    else
    {
        GameSettings.Options.RENDER_DISTANCE.setValueMax(16.0F);
    }

    this.renderDistanceChunks = mcIn.isJava64bit() ? 12 : 8;
    this.loadOptions();
}
 
開發者ID:Notoh,項目名稱:DecompiledMinecraft,代碼行數:24,代碼來源:GameSettings.java

示例2: GameSettings

import net.minecraft.client.Minecraft; //導入方法依賴的package包/類
public GameSettings(Minecraft mcIn, File optionsFileIn)
{
    setForgeKeybindProperties();
    this.keyBindings = (KeyBinding[])ArrayUtils.addAll(new KeyBinding[] {this.keyBindAttack, this.keyBindUseItem, this.keyBindForward, this.keyBindLeft, this.keyBindBack, this.keyBindRight, this.keyBindJump, this.keyBindSneak, this.keyBindSprint, this.keyBindDrop, this.keyBindInventory, this.keyBindChat, this.keyBindPlayerList, this.keyBindPickBlock, this.keyBindCommand, this.keyBindScreenshot, this.keyBindTogglePerspective, this.keyBindSmoothCamera, this.keyBindFullscreen, this.keyBindSpectatorOutlines, this.keyBindSwapHands}, this.keyBindsHotbar);
    this.difficulty = EnumDifficulty.NORMAL;
    this.lastServer = "";
    this.fovSetting = 70.0F;
    this.language = "en_US";
    this.mc = mcIn;
    this.optionsFile = new File(optionsFileIn, "options.txt");

    if (mcIn.isJava64bit() && Runtime.getRuntime().maxMemory() >= 1000000000L)
    {
        GameSettings.Options.RENDER_DISTANCE.setValueMax(32.0F);
    }
    else
    {
        GameSettings.Options.RENDER_DISTANCE.setValueMax(16.0F);
    }

    this.renderDistanceChunks = mcIn.isJava64bit() ? 12 : 8;
    this.loadOptions();
}
 
開發者ID:F1r3w477,項目名稱:CustomWorldGen,代碼行數:24,代碼來源:GameSettings.java

示例3: GameSettings

import net.minecraft.client.Minecraft; //導入方法依賴的package包/類
public GameSettings(Minecraft mcIn, File optionsFileIn)
{
    this.setForgeKeybindProperties();
    this.keyBindings = (KeyBinding[])((KeyBinding[])ArrayUtils.addAll(new KeyBinding[] {this.keyBindAttack, this.keyBindUseItem, this.keyBindForward, this.keyBindLeft, this.keyBindBack, this.keyBindRight, this.keyBindJump, this.keyBindSneak, this.keyBindSprint, this.keyBindDrop, this.keyBindInventory, this.keyBindChat, this.keyBindPlayerList, this.keyBindPickBlock, this.keyBindCommand, this.keyBindScreenshot, this.keyBindTogglePerspective, this.keyBindSmoothCamera, this.keyBindFullscreen, this.keyBindSpectatorOutlines, this.keyBindSwapHands}, this.keyBindsHotbar));
    this.difficulty = EnumDifficulty.NORMAL;
    this.lastServer = "";
    this.fovSetting = 70.0F;
    this.language = "en_us";
    this.mc = mcIn;
    this.optionsFile = new File(optionsFileIn, "options.txt");

    if (mcIn.isJava64bit() && Runtime.getRuntime().maxMemory() >= 1000000000L)
    {
        GameSettings.Options.RENDER_DISTANCE.setValueMax(32.0F);
    }
    else
    {
        GameSettings.Options.RENDER_DISTANCE.setValueMax(16.0F);
    }

    this.renderDistanceChunks = mcIn.isJava64bit() ? 12 : 8;
    this.optionsFileOF = new File(optionsFileIn, "optionsof.txt");
    this.limitFramerate = (int)GameSettings.Options.FRAMERATE_LIMIT.getValueMax();
    this.ofKeyBindZoom = new KeyBinding("of.key.zoom", 46, "key.categories.misc");
    this.keyBindings = (KeyBinding[])((KeyBinding[])ArrayUtils.add(this.keyBindings, this.ofKeyBindZoom));
    GameSettings.Options.RENDER_DISTANCE.setValueMax(32.0F);
    this.renderDistanceChunks = 8;
    this.loadOptions();
    Config.initGameSettings(this);
}
 
開發者ID:sudofox,項目名稱:Backmemed,代碼行數:31,代碼來源:GameSettings.java


注:本文中的net.minecraft.client.Minecraft.isJava64bit方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。