本文整理汇总了Java中net.minecraft.client.gui.inventory.GuiInventory.func_110423_a方法的典型用法代码示例。如果您正苦于以下问题:Java GuiInventory.func_110423_a方法的具体用法?Java GuiInventory.func_110423_a怎么用?Java GuiInventory.func_110423_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.client.gui.inventory.GuiInventory
的用法示例。
在下文中一共展示了GuiInventory.func_110423_a方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawGuiContainerBackgroundLayer
import net.minecraft.client.gui.inventory.GuiInventory; //导入方法依赖的package包/类
@Override
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.getTextureManager().bindTexture(gui);
int l = (width - xSize) / 2;
int i1 = (height - ySize) / 2;
drawTexturedModalRect(l, i1, 0, 0, xSize, ySize);
for (int j1 = 0; j1 < 3; j1++)
{
for (int k1 = 0; k1 < 3; k1++)
{
drawTexturedModalRect(l + 78 + 18 * k1, i1 + 9 + 18 * j1 + 15, 197, 2, 18, 18);
}
}
GuiInventory.func_110423_a(l + 42, i1 + 51, 30, (float)(l + 51) - xSize_wolf, (float)((i1 + 75) - 50) - ySize_wolf, this.dog);
}
示例2: func_74185_a
import net.minecraft.client.gui.inventory.GuiInventory; //导入方法依赖的package包/类
protected void func_74185_a(float p_74185_1_, int p_74185_2_, int p_74185_3_) {
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.field_73882_e.func_110434_K().func_110577_a(field_110414_t);
int var4 = (this.field_73880_f - this.field_74194_b) / 2;
int var5 = (this.field_73881_g - this.field_74195_c) / 2;
this.func_73729_b(var4, var5, 0, 0, this.field_74194_b, this.field_74195_c);
if(this.field_110411_w.func_110261_ca()) {
this.func_73729_b(var4 + 79, var5 + 17, 0, this.field_74195_c, 90, 54);
}
if(this.field_110411_w.func_110259_cr()) {
this.func_73729_b(var4 + 7, var5 + 35, 0, this.field_74195_c + 54, 18, 18);
}
GuiInventory.func_110423_a(var4 + 51, var5 + 60, 17, (float)(var4 + 51) - this.field_110416_x, (float)(var5 + 75 - 50) - this.field_110415_y, this.field_110411_w);
}
示例3: func_74185_a
import net.minecraft.client.gui.inventory.GuiInventory; //导入方法依赖的package包/类
protected void func_74185_a(float p_74185_1_, int p_74185_2_, int p_74185_3_) {
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
RenderHelper.func_74520_c();
CreativeTabs var4 = CreativeTabs.field_78032_a[field_74241_p];
CreativeTabs[] var5 = CreativeTabs.field_78032_a;
int var6 = var5.length;
int var7;
for(var7 = 0; var7 < var6; ++var7) {
CreativeTabs var8 = var5[var7];
this.field_73882_e.func_110434_K().func_110577_a(field_110424_t);
if(var8.func_78021_a() != field_74241_p) {
this.func_74233_a(var8);
}
}
this.field_73882_e.func_110434_K().func_110577_a(new ResourceLocation("textures/gui/container/creative_inventory/tab_" + var4.func_78015_f()));
this.func_73729_b(this.field_74198_m, this.field_74197_n, 0, 0, this.field_74194_b, this.field_74195_c);
this.field_74237_t.func_73795_f();
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
int var9 = this.field_74198_m + 175;
var6 = this.field_74197_n + 18;
var7 = var6 + 112;
this.field_73882_e.func_110434_K().func_110577_a(field_110424_t);
if(var4.func_78017_i()) {
this.func_73729_b(var9, var6 + (int)((float)(var7 - var6 - 17) * this.field_74240_q), 232 + (this.func_74226_k()?0:12), 0, 12, 15);
}
this.func_74233_a(var4);
if(var4 == CreativeTabs.field_78036_m) {
GuiInventory.func_110423_a(this.field_74198_m + 43, this.field_74197_n + 45, 20, (float)(this.field_74198_m + 43 - p_74185_2_), (float)(this.field_74197_n + 45 - 30 - p_74185_3_), this.field_73882_e.field_71439_g);
}
}
示例4: drawGuiContainerBackgroundLayer
import net.minecraft.client.gui.inventory.GuiInventory; //导入方法依赖的package包/类
/**
* Draw the background layer for the GuiContainer (everything behind the items)
*/
protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.getTextureManager().bindTexture(MechGuiTextures);
int k = (this.width - this.xSize) / 2;
int l = (this.height - this.ySize) / 2;
this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
GuiInventory.func_110423_a(k + 51, l + 60, 12, (float)(k + 51) - this.field_110416_x, (float)(l + 75 - 50) - this.field_110415_y, this.mech);
}