Made Item constructor public, and made setTextureFile chainable, requires mods to recompile, but as this is for 1.4.3 i'm not concerned.
This commit is contained in:
parent
b63009fd7d
commit
207843e279
|
@ -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.<init>(I)V #MD:Item/<init>(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
|
||||
|
|
|
@ -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;
|
||||
+ }
|
||||
+
|
||||
+
|
||||
|
|
|
@ -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;
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
|
|
Loading…
Reference in New Issue