private boolean func_92031_b(Slot p_92031_1_) { boolean var2 = p_92031_1_ == null || !p_92031_1_.func_75216_d(); if (p_92031_1_ != null && p_92031_1_.func_75216_d() && this.field_85050_q != null && ItemStack.func_77970_a(p_92031_1_.func_75211_c(), this.field_85050_q)) { var2 |= p_92031_1_.func_75211_c().field_77994_a + this.field_85050_q.field_77994_a <= this.field_85050_q.func_77976_d(); } return var2; }
public ItemStack func_82846_b(EntityPlayer p_82846_1_, int p_82846_2_) { ItemStack var3 = null; Slot var4 = (Slot) this.field_75151_b.get(p_82846_2_); if (var4 != null && var4.func_75216_d()) { ItemStack var5 = var4.func_75211_c(); var3 = var5.func_77946_l(); if (p_82846_2_ == 2) { if (!this.func_75135_a(var5, 3, 39, true)) { return null; } var4.func_75220_a(var5, var3); } else if (p_82846_2_ != 1 && p_82846_2_ != 0) { if (FurnaceRecipes.func_77602_a().func_77603_b(var5.func_77973_b().field_77779_bT) != null) { if (!this.func_75135_a(var5, 0, 1, false)) { return null; } } else if (TileEntityFurnace.func_70401_b(var5)) { if (!this.func_75135_a(var5, 1, 2, false)) { return null; } } else if (p_82846_2_ >= 3 && p_82846_2_ < 30) { if (!this.func_75135_a(var5, 30, 39, false)) { return null; } } else if (p_82846_2_ >= 30 && p_82846_2_ < 39 && !this.func_75135_a(var5, 3, 30, false)) { return null; } } else if (!this.func_75135_a(var5, 3, 39, false)) { return null; } if (var5.field_77994_a == 0) { var4.func_75215_d((ItemStack) null); } else { var4.func_75218_e(); } if (var5.field_77994_a == var3.field_77994_a) { return null; } var4.func_82870_a(p_82846_1_, var5); } return var3; }
protected void func_74192_a(Slot p_74192_1_) { int var2 = p_74192_1_.field_75223_e; int var3 = p_74192_1_.field_75221_f; ItemStack var4 = p_74192_1_.func_75211_c(); boolean var5 = p_74192_1_ == this.field_85051_p && this.field_85050_q != null && !this.field_90018_r; if (p_74192_1_ == this.field_85051_p && this.field_85050_q != null && this.field_90018_r && var4 != null) { var4 = var4.func_77946_l(); var4.field_77994_a /= 2; } this.field_73735_i = 100.0F; field_74196_a.field_77023_b = 100.0F; if (var4 == null) { int var6 = p_74192_1_.func_75212_b(); if (var6 >= 0) { GL11.glDisable(2896); this.field_73882_e.field_71446_o.func_78342_b( this.field_73882_e.field_71446_o.func_78341_b("/gui/items.png")); this.func_73729_b(var2, var3, var6 % 16 * 16, var6 / 16 * 16, 16, 16); GL11.glEnable(2896); var5 = true; } } if (!var5) { GL11.glEnable(2929); field_74196_a.func_82406_b( this.field_73886_k, this.field_73882_e.field_71446_o, var4, var2, var3); field_74196_a.func_77021_b( this.field_73886_k, this.field_73882_e.field_71446_o, var4, var2, var3); } field_74196_a.field_77023_b = 0.0F; this.field_73735_i = 0.0F; }
public ItemStack func_82846_b(EntityPlayer p_82846_1_, int p_82846_2_) { ItemStack var3 = null; Slot var4 = (Slot) this.field_75151_b.get(p_82846_2_); if (var4 != null && var4.func_75216_d()) { ItemStack var5 = var4.func_75211_c(); var3 = var5.func_77946_l(); if (p_82846_2_ < this.field_75154_f * 9) { if (!this.func_75135_a(var5, this.field_75154_f * 9, this.field_75151_b.size(), true)) { return null; } } else if (!this.func_75135_a(var5, 0, this.field_75154_f * 9, false)) { return null; } if (var5.field_77994_a == 0) { var4.func_75215_d((ItemStack) null); } else { var4.func_75218_e(); } } return var3; }