further backward compatibility fixes

This commit is contained in:
Space Toad 2011-12-10 11:05:49 +00:00
parent d64c332266
commit 707a07511f
2 changed files with 20 additions and 6 deletions

View file

@ -25,7 +25,7 @@
} }
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l) public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l)
@@ -438,25 +441,49 @@ @@ -438,25 +441,56 @@
{ {
return 1; return 1;
} }
@ -84,10 +84,17 @@
+ } + }
+ } + }
+ return tr; + return tr;
+ }
+
+ /* FORGE: This function returns the complete list of drops for a block.
+ */
+ public ArrayList<ItemStack> getBlockDropped(World world,
+ int i, int j, int k, int md) {
+ return getBlockDropped (world, i, j, k, md);
} }
public final void dropBlockAsItem(World world, int i, int j, int k, int l, int i1) public final void dropBlockAsItem(World world, int i, int j, int k, int l, int i1)
@@ -470,18 +497,13 @@ @@ -470,18 +504,13 @@
{ {
return; return;
} }
@ -109,7 +116,7 @@
} }
} }
@@ -805,6 +827,107 @@ @@ -805,6 +834,107 @@
return iblockaccess.isBlockNormalCube(i, j, k) ? 0.2F : 1.0F; return iblockaccess.isBlockNormalCube(i, j, k) ? 0.2F : 1.0F;
} }

View file

@ -8,7 +8,7 @@
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Random; import java.util.Random;
@@ -384,26 +385,50 @@ @@ -384,26 +385,57 @@
return 1; return 1;
} }
@ -68,11 +68,18 @@
+ } + }
+ return tr; + return tr;
+ } + }
+
+ /* FORGE: This function returns the complete list of drops for a block.
+ */
+ public ArrayList<ItemStack> getBlockDropped(World world,
+ int i, int j, int k, int md) {
+ return getBlockDropped (world, i, j, k, md);
+ }
+ +
public final void dropBlockAsItem(World world, int i, int j, int k, int l, int i1) public final void dropBlockAsItem(World world, int i, int j, int k, int l, int i1)
{ {
dropBlockAsItemWithChance(world, i, j, k, l, 1.0F, i1); dropBlockAsItemWithChance(world, i, j, k, l, 1.0F, i1);
@@ -415,18 +440,14 @@ @@ -415,18 +447,14 @@
{ {
return; return;
} }
@ -94,7 +101,7 @@
} }
} }
@@ -725,6 +746,99 @@ @@ -725,6 +753,99 @@
return blockMaterial.getMaterialMobility(); return blockMaterial.getMaterialMobility();
} }