mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-28 07:55:53 +00:00
FML is no more. FML has ceased to be. FML's expired and gone to meet its maker. FML's a stiff! Bereft of life, FML rests in peace.
This commit is contained in:
1 parent
9a859f8d5c
commit
614bbcb0da
356 files changed
+2676
-235
No files matched your search
@@ -1,6 +1,29 @@
|
||||
--- ../src-base/minecraft/net/minecraft/item/ItemStack.java
|
||||
+++ ../src-work/minecraft/net/minecraft/item/ItemStack.java
|
||||
@@ -129,6 +129,7 @@
|
||||
@@ -52,6 +52,7 @@
|
||||
private boolean field_179551_k;
|
||||
private static final String __OBFID = "CL_00000043";
|
||||
|
||||
+ private net.minecraftforge.fml.common.registry.RegistryDelegate<Item> delegate;
|
||||
public ItemStack(Block p_i1876_1_)
|
||||
{
|
||||
this(p_i1876_1_, 1);
|
||||
@@ -83,7 +84,7 @@
|
||||
this.field_179553_i = false;
|
||||
this.field_179550_j = null;
|
||||
this.field_179551_k = false;
|
||||
- this.field_151002_e = p_i1881_1_;
|
||||
+ this.func_150996_a(p_i1881_1_);
|
||||
this.field_77994_a = p_i1881_2_;
|
||||
this.field_77991_e = p_i1881_3_;
|
||||
|
||||
@@ -123,11 +124,12 @@
|
||||
|
||||
public Item func_77973_b()
|
||||
{
|
||||
- return this.field_151002_e;
|
||||
+ return this.delegate != null ? this.delegate.get() : null;
|
||||
}
|
||||
|
||||
public boolean func_179546_a(EntityPlayer p_179546_1_, World p_179546_2_, BlockPos p_179546_3_, EnumFacing p_179546_4_, float p_179546_5_, float p_179546_6_, float p_179546_7_)
|
||||
{
|
||||
@@ -8,7 +31,21 @@
|
||||
boolean flag = this.func_77973_b().func_180614_a(this, p_179546_1_, p_179546_2_, p_179546_3_, p_179546_4_, p_179546_5_, p_179546_6_, p_179546_7_);
|
||||
|
||||
if (flag)
|
||||
@@ -201,7 +202,7 @@
|
||||
@@ -172,11 +174,11 @@
|
||||
{
|
||||
if (p_77963_1_.func_150297_b("id", 8))
|
||||
{
|
||||
- this.field_151002_e = Item.func_111206_d(p_77963_1_.func_74779_i("id"));
|
||||
+ this.func_150996_a(Item.func_111206_d(p_77963_1_.func_74779_i("id")));
|
||||
}
|
||||
else
|
||||
{
|
||||
- this.field_151002_e = Item.func_150899_d(p_77963_1_.func_74765_d("id"));
|
||||
+ this.func_150996_a(Item.func_150899_d(p_77963_1_.func_74765_d("id")));
|
||||
}
|
||||
|
||||
this.field_77994_a = p_77963_1_.func_74771_c("Count");
|
||||
@@ -200,7 +202,7 @@
|
||||
|
||||
public int func_77976_d()
|
||||
{
|
||||
@@ -17,7 +54,7 @@
|
||||
}
|
||||
|
||||
public boolean func_77985_e()
|
||||
@@ -211,7 +212,7 @@
|
||||
@@ -210,7 +212,7 @@
|
||||
|
||||
public boolean func_77984_f()
|
||||
{
|
||||
@@ -26,7 +63,7 @@
|
||||
}
|
||||
|
||||
public boolean func_77981_g()
|
||||
@@ -221,32 +222,27 @@
|
||||
@@ -220,32 +222,27 @@
|
||||
|
||||
public boolean func_77951_h()
|
||||
{
|
||||
@@ -64,7 +101,7 @@
|
||||
}
|
||||
|
||||
public boolean func_96631_a(int p_96631_1_, Random p_96631_2_)
|
||||
@@ -278,8 +274,8 @@
|
||||
@@ -277,8 +274,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +112,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -338,7 +334,7 @@
|
||||
@@ -337,7 +334,7 @@
|
||||
|
||||
public boolean func_150998_b(Block p_150998_1_)
|
||||
{
|
||||
@@ -84,7 +121,7 @@
|
||||
}
|
||||
|
||||
public boolean func_111282_a(EntityPlayer p_111282_1_, EntityLivingBase p_111282_2_)
|
||||
@@ -753,6 +749,8 @@
|
||||
@@ -752,6 +749,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +130,7 @@
|
||||
return arraylist;
|
||||
}
|
||||
|
||||
@@ -863,7 +861,7 @@
|
||||
@@ -862,7 +861,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -102,3 +139,11 @@
|
||||
}
|
||||
|
||||
return (Multimap)object;
|
||||
@@ -870,6 +869,7 @@
|
||||
|
||||
public void func_150996_a(Item p_150996_1_)
|
||||
{
|
||||
+ this.delegate = p_150996_1_ != null ? p_150996_1_.delegate : null;
|
||||
this.field_151002_e = p_150996_1_;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user