本文整理汇总了Java中net.minecraft.client.gui.achievement.GuiStats类的典型用法代码示例。如果您正苦于以下问题:Java GuiStats类的具体用法?Java GuiStats怎么用?Java GuiStats使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GuiStats类属于net.minecraft.client.gui.achievement包,在下文中一共展示了GuiStats类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
/**
* Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
*/
protected void actionPerformed(GuiButton button) throws IOException
{
if (button.id == 0)
{
this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
}
if (button.id == 1)
{
this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
}
if (button.id == 101)
{
tabPage = Math.max(tabPage - 1, 0);
}
else if (button.id == 102)
{
tabPage = Math.min(tabPage + 1, maxPages);
}
}
示例2: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
@Override
protected void actionPerformed(GuiButton button) throws IOException
{
if (button.id == 0)
{
this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
}
if (button.id == 1)
{
this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
}
if (button.id == 101)
{
}
}
示例3: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
protected void actionPerformed(GuiButton p_146284_1_)
{
if (p_146284_1_.id == 0)
{
this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
}
if (p_146284_1_.id == 1)
{
this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
}
if (p_146284_1_.id == 101)
{
tabPage = Math.max(tabPage - 1, 0);
}
else if (p_146284_1_.id == 102)
{
tabPage = Math.min(tabPage + 1, maxPages);
}
}
示例4: GuiSlotStatsBlock
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
public GuiSlotStatsBlock(GuiStats p_i1066_1_) {
super(p_i1066_1_);
this.field_77268_a = p_i1066_1_;
this.field_77266_h = new ArrayList();
Iterator var2 = StatList.field_75939_e.iterator();
while(var2.hasNext()) {
StatCrafting var3 = (StatCrafting)var2.next();
boolean var4 = false;
int var5 = var3.func_75982_a();
if(GuiStats.func_74127_c(p_i1066_1_).func_77444_a(var3) > 0) {
var4 = true;
} else if(StatList.field_75929_E[var5] != null && GuiStats.func_74127_c(p_i1066_1_).func_77444_a(StatList.field_75929_E[var5]) > 0) {
var4 = true;
} else if(StatList.field_75928_D[var5] != null && GuiStats.func_74127_c(p_i1066_1_).func_77444_a(StatList.field_75928_D[var5]) > 0) {
var4 = true;
}
if(var4) {
this.field_77266_h.add(var3);
}
}
this.field_77267_i = new SorterStatsBlock(this, p_i1066_1_);
}
示例5: func_77222_a
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
protected void func_77222_a(int p_77222_1_, int p_77222_2_, Tessellator p_77222_3_) {
super.func_77222_a(p_77222_1_, p_77222_2_, p_77222_3_);
if(this.field_77262_g == 0) {
GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 115 - 18 + 1, p_77222_2_ + 1 + 1, 18, 18);
} else {
GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 115 - 18, p_77222_2_ + 1, 18, 18);
}
if(this.field_77262_g == 1) {
GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 165 - 18 + 1, p_77222_2_ + 1 + 1, 36, 18);
} else {
GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 165 - 18, p_77222_2_ + 1, 36, 18);
}
if(this.field_77262_g == 2) {
GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 215 - 18 + 1, p_77222_2_ + 1 + 1, 54, 18);
} else {
GuiStats.func_74134_a(this.field_77268_a, p_77222_1_ + 215 - 18, p_77222_2_ + 1, 54, 18);
}
}
示例6: GuiSlotStatsItem
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
public GuiSlotStatsItem(GuiStats p_i1069_1_) {
super(p_i1069_1_);
this.field_77269_a = p_i1069_1_;
this.field_77266_h = new ArrayList();
Iterator var2 = StatList.field_75938_d.iterator();
while(var2.hasNext()) {
StatCrafting var3 = (StatCrafting)var2.next();
boolean var4 = false;
int var5 = var3.func_75982_a();
if(GuiStats.func_74127_c(p_i1069_1_).func_77444_a(var3) > 0) {
var4 = true;
} else if(StatList.field_75930_F[var5] != null && GuiStats.func_74127_c(p_i1069_1_).func_77444_a(StatList.field_75930_F[var5]) > 0) {
var4 = true;
} else if(StatList.field_75928_D[var5] != null && GuiStats.func_74127_c(p_i1069_1_).func_77444_a(StatList.field_75928_D[var5]) > 0) {
var4 = true;
}
if(var4) {
this.field_77266_h.add(var3);
}
}
this.field_77267_i = new SorterStatsItem(this, p_i1069_1_);
}
示例7: func_77222_a
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
protected void func_77222_a(int p_77222_1_, int p_77222_2_, Tessellator p_77222_3_) {
super.func_77222_a(p_77222_1_, p_77222_2_, p_77222_3_);
if(this.field_77262_g == 0) {
GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 115 - 18 + 1, p_77222_2_ + 1 + 1, 72, 18);
} else {
GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 115 - 18, p_77222_2_ + 1, 72, 18);
}
if(this.field_77262_g == 1) {
GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 165 - 18 + 1, p_77222_2_ + 1 + 1, 18, 18);
} else {
GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 165 - 18, p_77222_2_ + 1, 18, 18);
}
if(this.field_77262_g == 2) {
GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 215 - 18 + 1, p_77222_2_ + 1 + 1, 36, 18);
} else {
GuiStats.func_74134_a(this.field_77269_a, p_77222_1_ + 215 - 18, p_77222_2_ + 1, 36, 18);
}
}
示例8: func_77224_a
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
protected void func_77224_a(int p_77224_1_, int p_77224_2_) {
this.field_77262_g = -1;
if(p_77224_1_ >= 79 && p_77224_1_ < 115) {
this.field_77262_g = 0;
} else if(p_77224_1_ >= 129 && p_77224_1_ < 165) {
this.field_77262_g = 1;
} else if(p_77224_1_ >= 179 && p_77224_1_ < 215) {
this.field_77262_g = 2;
}
if(this.field_77262_g >= 0) {
this.func_77261_e(this.field_77262_g);
GuiStats.func_74133_g(this.field_77263_l).field_71416_A.func_77366_a("random.click", 1.0F, 1.0F);
}
}
示例9: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
/**
* Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).
*/
protected void actionPerformed(GuiButton par1GuiButton)
{
if (par1GuiButton.id == 0)
{
this.mc.displayGuiScreen(new GuiAchievements(this.mc.statFileWriter));
}
if (par1GuiButton.id == 1)
{
this.mc.displayGuiScreen(new GuiStats(this, this.mc.statFileWriter));
}
if (par1GuiButton.id == 101)
{
tabPage = Math.max(tabPage - 1, 0);
}
else if (par1GuiButton.id == 102)
{
tabPage = Math.min(tabPage + 1, maxPages);
}
}
示例10: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
/**
* Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
*/
protected void actionPerformed(GuiButton button) throws IOException
{
if (button.id == 0)
{
this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.getStatFileWriter()));
}
if (button.id == 1)
{
this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.getStatFileWriter()));
}
}
示例11: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
/**
* Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
*/
protected void actionPerformed(GuiButton button) throws IOException
{
if (button.id == 0)
{
this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.player.getStatFileWriter()));
}
if (button.id == 1)
{
this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter()));
}
}
示例12: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
/**
* Called by the controls from the buttonList when activated. (Mouse pressed
* for buttons)
*/
@Override
protected void actionPerformed(GuiButton button) throws IOException {
/*if (button.id == 0)
this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.player.getStatFileWriter()));*/
if (button.id == 1)
this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter()));
}
示例13: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
@Override
protected void actionPerformed(GuiButton button) {
// if (button.id == 0) {
// this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.player.getStatFileWriter()));
// }
if (button.id == 1) {
this.mc.displayGuiScreen(new GuiStats(this, this.mc.player.getStatFileWriter()));
}
}
示例14: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
protected void actionPerformed(GuiButton p_146284_1_)
{
switch (p_146284_1_.id)
{
case 0:
this.mc.displayGuiScreen(new GuiOptions(this, this.mc.gameSettings));
break;
case 1:
p_146284_1_.enabled = false;
this.mc.theWorld.sendQuittingDisconnectingPacket();
this.mc.loadWorld((WorldClient)null);
this.mc.displayGuiScreen(new HookGuiMainMenu());
case 2:
case 3:
default:
break;
case 4:
this.mc.displayGuiScreen((GuiScreen)null);
this.mc.setIngameFocus();
break;
case 5:
this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.func_146107_m()));
break;
case 6:
this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.func_146107_m()));
break;
case 7:
this.mc.displayGuiScreen(new GuiShareToLan(this));
}
}
示例15: actionPerformed
import net.minecraft.client.gui.achievement.GuiStats; //导入依赖的package包/类
protected void actionPerformed(GuiButton p_146284_1_)
{
if (p_146284_1_.id == 0)
{
this.mc.displayGuiScreen(new GuiAchievements(this, this.mc.thePlayer.func_146107_m()));
}
if (p_146284_1_.id == 1)
{
this.mc.displayGuiScreen(new GuiStats(this, this.mc.thePlayer.func_146107_m()));
}
}