/**
* Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
*/
protected void actionPerformed(GuiButton button) throws IOException
{
if (button.enabled)
{
if (button.id == 200)
{
this.mc.gameSettings.saveOptions();
this.mc.displayGuiScreen(this.parentScreen);
}
else if (button.id == 199)
{
this.mc.gameSettings.setOptionValue(GameSettings.Options.MAIN_HAND, 1);
button.displayString = this.mc.gameSettings.getKeyBinding(GameSettings.Options.MAIN_HAND);
this.mc.gameSettings.sendSettingsToServer();
}
else if (button instanceof GuiCustomizeSkin.ButtonPart)
{
EnumPlayerModelParts enumplayermodelparts = ((GuiCustomizeSkin.ButtonPart)button).playerModelParts;
this.mc.gameSettings.switchModelPartEnabled(enumplayermodelparts);
button.displayString = this.getMessage(enumplayermodelparts);
}
}
}
GuiCustomizeSkin.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:Backmemed
作者:
评论列表
文章目录