Java 类net.minecraft.client.settings.GameSettings.Options 实例源码

项目:DynamicSurroundings    文件:MinecraftConfigHandler.java   
@Nullable
private static Options getOptionByName(@Nonnull final String name) {
    for (final Options o : Options.values())
        if (name.equals(o.getEnumString()))
            return o;
    return null;
}
项目:CustomWorldGen    文件:EnumHelperClient.java   
public static Options addOptions(String name, String langName, boolean isSlider, boolean isToggle)
{
    return addEnum(Options.class, name, langName, isSlider, isToggle);
}
项目:CustomWorldGen    文件:EnumHelperClient.java   
public static Options addOptions(String name, String langName, boolean isSlider, boolean isToggle, float valMin, float valMax, float valStep)
{
    return addEnum(Options.class, name,
            new Class<?>[]{String.class, boolean.class, boolean.class, float.class, float.class, float.class},
            langName, isSlider, isToggle, valMin, valMax, valStep);
}
项目:TRHS_Club_Mod_2016    文件:EnumHelperClient.java   
public static Options addOptions(String name, String langName, boolean isSlider, boolean isToggle)
{
    return addEnum(Options.class, name, langName, isSlider, isToggle);
}
项目:CauldronGit    文件:EnumHelperClient.java   
public static Options addOptions(String name, String langName, boolean isSlider, boolean isToggle)
{
    return addEnum(Options.class, name, langName, isSlider, isToggle);
}
项目:AbacusCommonsLib    文件:GuiSmallButton.java   
public GuiSmallButton(int p_i3057_1_, int p_i3057_2_, int p_i3057_3_, String p_i3057_4_) {
  this(p_i3057_1_, p_i3057_2_, p_i3057_3_, (Options)null, p_i3057_4_);
}
项目:AbacusCommonsLib    文件:GuiSmallButton.java   
public GuiSmallButton(int p_i3059_1_, int p_i3059_2_, int p_i3059_3_, Options p_i3059_4_, String p_i3059_5_) {
  super(p_i3059_1_, p_i3059_2_, p_i3059_3_, 150, 20, p_i3059_5_);
  field_73754_j = p_i3059_4_;
}
项目:AbacusCommonsLib    文件:GuiSmallButton.java   
public Options func_73753_a() {
  return field_73754_j;
}
项目:Cauldron    文件:EnumHelperClient.java   
public static Options addOptions(String name, String langName, boolean isSlider, boolean isToggle)
{
    return addEnum(Options.class, name, langName, isSlider, isToggle);
}
项目:Cauldron    文件:EnumHelperClient.java   
public static Options addOptions(String name, String langName, boolean isSlider, boolean isToggle)
{
    return addEnum(Options.class, name, langName, isSlider, isToggle);
}
项目:Cauldron    文件:EnumHelperClient.java   
public static Options addOptions(String name, String langName, boolean isSlider, boolean isToggle)
{
    return addEnum(Options.class, name, langName, isSlider, isToggle);
}
项目:AgeCraft-Old    文件:ACUtilClient.java   
public static void changeGuiScale(Minecraft mc) {
    mc.gameSettings.setOptionValue(Options.GUI_SCALE, 1);
    ScaledResolution sr = new ScaledResolution(mc.gameSettings, mc.displayWidth, mc.displayHeight);
    mc.currentScreen.setWorldAndResolution(mc, sr.getScaledWidth(), sr.getScaledHeight());
}