本文整理汇总了Java中net.minecraft.client.gui.GuiNewChat.func_96130_b方法的典型用法代码示例。如果您正苦于以下问题:Java GuiNewChat.func_96130_b方法的具体用法?Java GuiNewChat.func_96130_b怎么用?Java GuiNewChat.func_96130_b使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.client.gui.GuiNewChat
的用法示例。
在下文中一共展示了GuiNewChat.func_96130_b方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: func_74297_c
import net.minecraft.client.gui.GuiNewChat; //导入方法依赖的package包/类
public String func_74297_c(EnumOptions p_74297_1_) {
String var2 = I18n.func_135053_a(p_74297_1_.func_74378_d()) + ": ";
if(p_74297_1_.func_74380_a()) {
float var5 = this.func_74296_a(p_74297_1_);
return p_74297_1_ == EnumOptions.SENSITIVITY?(var5 == 0.0F?var2 + I18n.func_135053_a("options.sensitivity.min"):(var5 == 1.0F?var2 + I18n.func_135053_a("options.sensitivity.max"):var2 + (int)(var5 * 200.0F) + "%")):(p_74297_1_ == EnumOptions.FOV?(var5 == 0.0F?var2 + I18n.func_135053_a("options.fov.min"):(var5 == 1.0F?var2 + I18n.func_135053_a("options.fov.max"):var2 + (int)(70.0F + var5 * 40.0F))):(p_74297_1_ == EnumOptions.GAMMA?(var5 == 0.0F?var2 + I18n.func_135053_a("options.gamma.min"):(var5 == 1.0F?var2 + I18n.func_135053_a("options.gamma.max"):var2 + "+" + (int)(var5 * 100.0F) + "%")):(p_74297_1_ == EnumOptions.CHAT_OPACITY?var2 + (int)(var5 * 90.0F + 10.0F) + "%":(p_74297_1_ == EnumOptions.CHAT_HEIGHT_UNFOCUSED?var2 + GuiNewChat.func_96130_b(var5) + "px":(p_74297_1_ == EnumOptions.CHAT_HEIGHT_FOCUSED?var2 + GuiNewChat.func_96130_b(var5) + "px":(p_74297_1_ == EnumOptions.CHAT_WIDTH?var2 + GuiNewChat.func_96128_a(var5) + "px":(var5 == 0.0F?var2 + I18n.func_135053_a("options.off"):var2 + (int)(var5 * 100.0F) + "%")))))));
} else if(p_74297_1_.func_74382_b()) {
boolean var4 = this.func_74308_b(p_74297_1_);
return var4?var2 + I18n.func_135053_a("options.on"):var2 + I18n.func_135053_a("options.off");
} else if(p_74297_1_ == EnumOptions.RENDER_DISTANCE) {
return var2 + func_74299_a(field_74360_ac, this.field_74339_e);
} else if(p_74297_1_ == EnumOptions.DIFFICULTY) {
return var2 + func_74299_a(field_74361_ad, this.field_74318_M);
} else if(p_74297_1_ == EnumOptions.GUI_SCALE) {
return var2 + func_74299_a(field_74367_ae, this.field_74335_Z);
} else if(p_74297_1_ == EnumOptions.CHAT_VISIBILITY) {
return var2 + func_74299_a(field_74369_af, this.field_74343_n);
} else if(p_74297_1_ == EnumOptions.PARTICLES) {
return var2 + func_74299_a(field_74364_ag, this.field_74362_aa);
} else if(p_74297_1_ == EnumOptions.FRAMERATE_LIMIT) {
return var2 + func_74299_a(field_74365_ah, this.field_74350_i);
} else if(p_74297_1_ == EnumOptions.AMBIENT_OCCLUSION) {
return var2 + func_74299_a(field_98303_au, this.field_74348_k);
} else if(p_74297_1_ == EnumOptions.GRAPHICS) {
if(this.field_74347_j) {
return var2 + I18n.func_135053_a("options.graphics.fancy");
} else {
String var3 = "options.graphics.fast";
return var2 + I18n.func_135053_a("options.graphics.fast");
}
} else {
return var2;
}
}
示例2: getKeyBinding
import net.minecraft.client.gui.GuiNewChat; //导入方法依赖的package包/类
/**
* Gets a key binding.
*/
public String getKeyBinding(EnumOptions par1EnumOptions)
{
String s = I18n.getString(par1EnumOptions.getEnumString()) + ": ";
if (par1EnumOptions.getEnumFloat())
{
float f = this.getOptionFloatValue(par1EnumOptions);
return par1EnumOptions == EnumOptions.SENSITIVITY ? (f == 0.0F ? s + I18n.getString("options.sensitivity.min") : (f == 1.0F ? s + I18n.getString("options.sensitivity.max") : s + (int)(f * 200.0F) + "%")) : (par1EnumOptions == EnumOptions.FOV ? (f == 0.0F ? s + I18n.getString("options.fov.min") : (f == 1.0F ? s + I18n.getString("options.fov.max") : s + (int)(70.0F + f * 40.0F))) : (par1EnumOptions == EnumOptions.GAMMA ? (f == 0.0F ? s + I18n.getString("options.gamma.min") : (f == 1.0F ? s + I18n.getString("options.gamma.max") : s + "+" + (int)(f * 100.0F) + "%")) : (par1EnumOptions == EnumOptions.CHAT_OPACITY ? s + (int)(f * 90.0F + 10.0F) + "%" : (par1EnumOptions == EnumOptions.CHAT_HEIGHT_UNFOCUSED ? s + GuiNewChat.func_96130_b(f) + "px" : (par1EnumOptions == EnumOptions.CHAT_HEIGHT_FOCUSED ? s + GuiNewChat.func_96130_b(f) + "px" : (par1EnumOptions == EnumOptions.CHAT_WIDTH ? s + GuiNewChat.func_96128_a(f) + "px" : (f == 0.0F ? s + I18n.getString("options.off") : s + (int)(f * 100.0F) + "%")))))));
}
else if (par1EnumOptions.getEnumBoolean())
{
boolean flag = this.getOptionOrdinalValue(par1EnumOptions);
return flag ? s + I18n.getString("options.on") : s + I18n.getString("options.off");
}
else if (par1EnumOptions == EnumOptions.RENDER_DISTANCE)
{
return s + getTranslation(RENDER_DISTANCES, this.renderDistance);
}
else if (par1EnumOptions == EnumOptions.DIFFICULTY)
{
return s + getTranslation(DIFFICULTIES, this.difficulty);
}
else if (par1EnumOptions == EnumOptions.GUI_SCALE)
{
return s + getTranslation(GUISCALES, this.guiScale);
}
else if (par1EnumOptions == EnumOptions.CHAT_VISIBILITY)
{
return s + getTranslation(CHAT_VISIBILITIES, this.chatVisibility);
}
else if (par1EnumOptions == EnumOptions.PARTICLES)
{
return s + getTranslation(PARTICLES, this.particleSetting);
}
else if (par1EnumOptions == EnumOptions.FRAMERATE_LIMIT)
{
return s + getTranslation(LIMIT_FRAMERATES, this.limitFramerate);
}
else if (par1EnumOptions == EnumOptions.AMBIENT_OCCLUSION)
{
return s + getTranslation(AMBIENT_OCCLUSIONS, this.ambientOcclusion);
}
else if (par1EnumOptions == EnumOptions.GRAPHICS)
{
if (this.fancyGraphics)
{
return s + I18n.getString("options.graphics.fancy");
}
else
{
String s1 = "options.graphics.fast";
return s + I18n.getString("options.graphics.fast");
}
}
else
{
return s;
}
}