diff --git a/common/forge_at.cfg b/common/forge_at.cfg index 20384f9ab..fda689a76 100644 --- a/common/forge_at.cfg +++ b/common/forge_at.cfg @@ -55,6 +55,7 @@ public anq.k #FD:TileEntity/field_70331_k #worldObj # BlockLeavesBase public amr.c #FD:BlockLeavesBase/field_72131_c #graphicsLevel # Item +public uk.(I)V #MD:Item/(I) #Constructor public uk.e(I)Luk; #MD:Item/func_77656_e #setMaxDamage public-f uk.f(Lum;)I #MD:Item/func_77650_f #getIconIndex # RailLogic diff --git a/patches/common/net/minecraft/src/Block.java.patch b/patches/common/net/minecraft/src/Block.java.patch index 29a899f70..de09417d2 100644 --- a/patches/common/net/minecraft/src/Block.java.patch +++ b/patches/common/net/minecraft/src/Block.java.patch @@ -102,7 +102,7 @@ { ItemStack var8 = this.createStackedBlock(par6); -@@ -1322,4 +1328,848 @@ +@@ -1322,4 +1328,849 @@ canBlockGrass[0] = true; StatList.initBreakableStats(); } @@ -665,10 +665,11 @@ + * + * @param texture The texture file + */ -+ public void setTextureFile(String texture) ++ public Block setTextureFile(String texture) + { + currentTexture = texture; + isDefaultTexture = false; ++ return this; + } + + diff --git a/patches/common/net/minecraft/src/Item.java.patch b/patches/common/net/minecraft/src/Item.java.patch index 2b0fa6d56..f61ef436b 100644 --- a/patches/common/net/minecraft/src/Item.java.patch +++ b/patches/common/net/minecraft/src/Item.java.patch @@ -7,7 +7,7 @@ + /** FORGE: To disable repair recipes. */ + protected boolean canRepair = true; + - protected Item(int par1) + public Item(int par1) { this.shiftedIndex = 256 + par1; @@ -37,7 +37,7 @@ Vec3 var23 = var13.addVector((double)var18 * var21, (double)var17 * var21, (double)var20 * var21); return par1World.rayTraceBlocks_do_do(var13, var23, par3, !par3); } -@@ -678,4 +690,265 @@ +@@ -678,4 +690,266 @@ { StatList.initStats(); } @@ -215,10 +215,11 @@ + * + * @param texture The texture file + */ -+ public void setTextureFile(String texture) ++ public Item setTextureFile(String texture) + { + currentTexture = texture; + isDefaultTexture = false; ++ return this; + } + + /**