mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 23:13:15 +00:00
Patches deleted
This commit is contained in:
1 parent
77c3310711
commit
330db1a54d
491 files changed
+59
-29527
No files matched your search
@@ -1,97 +0,0 @@
|
||||
--- ../src-base/minecraft/net/minecraft/tileentity/TileEntityFurnace.java
|
||||
+++ ../src-work/minecraft/net/minecraft/tileentity/TileEntityFurnace.java
|
||||
@@ -121,9 +121,9 @@
|
||||
super.func_145839_a(p_145839_1_);
|
||||
this.field_145957_n = NonNullList.<ItemStack>func_191197_a(this.func_70302_i_(), ItemStack.field_190927_a);
|
||||
ItemStackHelper.func_191283_b(p_145839_1_, this.field_145957_n);
|
||||
- this.field_145956_a = p_145839_1_.func_74765_d("BurnTime");
|
||||
- this.field_174906_k = p_145839_1_.func_74765_d("CookTime");
|
||||
- this.field_174905_l = p_145839_1_.func_74765_d("CookTimeTotal");
|
||||
+ this.field_145956_a = p_145839_1_.func_74762_e("BurnTime");
|
||||
+ this.field_174906_k = p_145839_1_.func_74762_e("CookTime");
|
||||
+ this.field_174905_l = p_145839_1_.func_74762_e("CookTimeTotal");
|
||||
this.field_145963_i = func_145952_a(this.field_145957_n.get(1));
|
||||
|
||||
if (p_145839_1_.func_150297_b("CustomName", 8))
|
||||
@@ -135,9 +135,9 @@
|
||||
public NBTTagCompound func_189515_b(NBTTagCompound p_189515_1_)
|
||||
{
|
||||
super.func_189515_b(p_189515_1_);
|
||||
- p_189515_1_.func_74777_a("BurnTime", (short)this.field_145956_a);
|
||||
- p_189515_1_.func_74777_a("CookTime", (short)this.field_174906_k);
|
||||
- p_189515_1_.func_74777_a("CookTimeTotal", (short)this.field_174905_l);
|
||||
+ p_189515_1_.func_74768_a("BurnTime", (short)this.field_145956_a);
|
||||
+ p_189515_1_.func_74768_a("CookTime", (short)this.field_174906_k);
|
||||
+ p_189515_1_.func_74768_a("CookTimeTotal", (short)this.field_174905_l);
|
||||
ItemStackHelper.func_191282_a(p_189515_1_, this.field_145957_n);
|
||||
|
||||
if (this.func_145818_k_())
|
||||
@@ -196,8 +196,8 @@
|
||||
|
||||
if (itemstack.func_190926_b())
|
||||
{
|
||||
- Item item1 = item.func_77668_q();
|
||||
- this.field_145957_n.set(1, item1 == null ? ItemStack.field_190927_a : new ItemStack(item1));
|
||||
+ ItemStack item1 = item.getContainerItem(itemstack);
|
||||
+ this.field_145957_n.set(1, item1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -269,13 +269,13 @@
|
||||
{
|
||||
return false;
|
||||
}
|
||||
- else if (itemstack1.func_190916_E() < this.func_70297_j_() && itemstack1.func_190916_E() < itemstack1.func_77976_d())
|
||||
+ else if (itemstack1.func_190916_E() + itemstack.func_190916_E() <= this.func_70297_j_() && itemstack1.func_190916_E() + itemstack.func_190916_E() <= itemstack1.func_77976_d()) // Forge fix: make furnace respect stack sizes in furnace recipes
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
- return itemstack1.func_190916_E() < itemstack.func_77976_d();
|
||||
+ return itemstack1.func_190916_E() + itemstack.func_190916_E() <= itemstack.func_77976_d(); // Forge fix: make furnace respect stack sizes in furnace recipes
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -295,7 +295,7 @@
|
||||
}
|
||||
else if (itemstack2.func_77973_b() == itemstack1.func_77973_b())
|
||||
{
|
||||
- itemstack2.func_190917_f(1);
|
||||
+ itemstack2.func_190917_f(itemstack1.func_190916_E());
|
||||
}
|
||||
|
||||
if (itemstack.func_77973_b() == Item.func_150898_a(Blocks.field_150360_v) && itemstack.func_77960_j() == 1 && !((ItemStack)this.field_145957_n.get(1)).func_190926_b() && ((ItemStack)this.field_145957_n.get(1)).func_77973_b() == Items.field_151133_ar)
|
||||
@@ -315,6 +315,8 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
+ int burnTime = net.minecraftforge.event.ForgeEventFactory.getItemBurnTime(p_145952_0_);
|
||||
+ if (burnTime >= 0) return burnTime;
|
||||
Item item = p_145952_0_.func_77973_b();
|
||||
|
||||
if (item == Item.func_150898_a(Blocks.field_150376_bx))
|
||||
@@ -530,4 +532,23 @@
|
||||
{
|
||||
this.field_145957_n.clear();
|
||||
}
|
||||
+
|
||||
+ net.minecraftforge.items.IItemHandler handlerTop = new net.minecraftforge.items.wrapper.SidedInvWrapper(this, net.minecraft.util.EnumFacing.UP);
|
||||
+ net.minecraftforge.items.IItemHandler handlerBottom = new net.minecraftforge.items.wrapper.SidedInvWrapper(this, net.minecraft.util.EnumFacing.DOWN);
|
||||
+ net.minecraftforge.items.IItemHandler handlerSide = new net.minecraftforge.items.wrapper.SidedInvWrapper(this, net.minecraft.util.EnumFacing.WEST);
|
||||
+
|
||||
+ @SuppressWarnings("unchecked")
|
||||
+ @Override
|
||||
+ @javax.annotation.Nullable
|
||||
+ public <T> T getCapability(net.minecraftforge.common.capabilities.Capability<T> capability, @javax.annotation.Nullable net.minecraft.util.EnumFacing facing)
|
||||
+ {
|
||||
+ if (facing != null && capability == net.minecraftforge.items.CapabilityItemHandler.ITEM_HANDLER_CAPABILITY)
|
||||
+ if (facing == EnumFacing.DOWN)
|
||||
+ return (T) handlerBottom;
|
||||
+ else if (facing == EnumFacing.UP)
|
||||
+ return (T) handlerTop;
|
||||
+ else
|
||||
+ return (T) handlerSide;
|
||||
+ return super.getCapability(capability, facing);
|
||||
+ }
|
||||
}
|
||||
Reference in new issue
Block a user