2011-10-10 23:47:30 +00:00
|
|
|
--- ../src_base/minecraft_server/net/minecraft/src/BlockTallGrass.java 0000-00-00 00:00:00.000000000 -0000
|
|
|
|
+++ ../src_work/minecraft_server/net/minecraft/src/BlockTallGrass.java 0000-00-00 00:00:00.000000000 -0000
|
2011-10-09 04:21:29 +00:00
|
|
|
@@ -4,7 +4,10 @@
|
|
|
|
|
|
|
|
package net.minecraft.src;
|
|
|
|
|
|
|
|
+import net.minecraft.src.forge.ForgeHooks;
|
|
|
|
+
|
|
|
|
import java.util.Random;
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
|
|
|
|
// Referenced classes of package net.minecraft.src:
|
|
|
|
// BlockFlower, Item, World, EntityPlayer,
|
2011-12-11 21:55:35 +00:00
|
|
|
@@ -41,13 +44,24 @@
|
2011-10-09 04:21:29 +00:00
|
|
|
|
2011-11-30 19:00:43 +00:00
|
|
|
public int idDropped(int i, Random random, int j)
|
2011-10-09 04:21:29 +00:00
|
|
|
{
|
|
|
|
- if(random.nextInt(8) == 0)
|
|
|
|
- {
|
|
|
|
- return Item.seeds.shiftedIndex;
|
|
|
|
- } else
|
|
|
|
- {
|
|
|
|
return -1;
|
|
|
|
- }
|
|
|
|
+ }
|
|
|
|
+
|
2011-12-11 21:55:35 +00:00
|
|
|
+ @Override
|
|
|
|
+ public ArrayList<ItemStack> getBlockDropped(World world, int i, int j, int k, int md, int fortune)
|
|
|
|
+ {
|
|
|
|
+ ArrayList<ItemStack> tr = new ArrayList<ItemStack>();
|
|
|
|
+ if (world.rand.nextInt(8) != 0)
|
|
|
|
+ {
|
2011-10-09 04:21:29 +00:00
|
|
|
+ return tr;
|
2011-12-11 21:55:35 +00:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ ItemStack ist = ForgeHooks.getGrassSeed(world);
|
|
|
|
+ if (ist != null)
|
|
|
|
+ {
|
|
|
|
+ tr.add(ist);
|
|
|
|
+ }
|
2011-10-09 04:21:29 +00:00
|
|
|
+ return tr;
|
|
|
|
}
|
|
|
|
|
2012-01-11 18:13:35 +00:00
|
|
|
public int quantityDroppedWithBonus(int i, Random random)
|