package ru.liahim.saltmod.block;

import java.util.Random;

import net.minecraft.block.BlockFalling;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.item.Item;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import ru.liahim.saltmod.common.ModItems;

public class MudBlock extends BlockFalling {
	
	private static int tick = 0;
	
	public MudBlock(String name, CreativeTabs tab) {
		super(Material.ground);
		this.setBlockName(name);
		this.setStepSound(soundTypeGravel);
		this.setCreativeTab(tab);
		this.setHardness(0.5F);
		this.setResistance(1F);
		this.setHarvestLevel("shovel", 0);
		this.setBlockTextureName("saltmod:MudBlock");
	}
	
	public AxisAlignedBB getCollisionBoundingBoxFromPool(World world, int x, int y, int z)
    {
        float f = 0.125F;
        return AxisAlignedBB.getBoundingBox((double)x, (double)y, (double)z, (double)(x + 1), (double)((float)(y + 1) - f), (double)(z + 1));
    }
	
	public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity)
    {
		entity.motionX *= 0.4D;
		entity.motionZ *= 0.4D;
    }
	
    public Item getItemDropped(int meta, Random rand, int fortune)
    {
        return ModItems.mineralMud;
    }

    public int quantityDropped(Random rand)
    {
        return 4;
    }
    
    public MapColor getMapColor(int meta)
    {
        return MapColor.grayColor;
    }
}
@@ -927,31 +927,22 @@
 int z)%0D%0A
-    %7B%0D%0A        
+%09%7B%0D%0A%09%09
 float f 
@@ -952,24 +952,18 @@
 .125F;%0D%0A
-        
+%09%09
 return A
@@ -1089,20 +1089,17 @@
 + 1));%0D%0A
-    
+%09
 %7D%0D%0A%09%0D%0A%09p
@@ -1185,20 +1185,17 @@
 ntity)%0D%0A
-    
+%09
 %7B%0D%0A%09%09ent
@@ -1247,22 +1247,16 @@
 D;%0D%0A
-    
+%09
 %7D%0D%0A%09%0D%0A
-    
+%09
 publ
@@ -1315,31 +1315,22 @@
 rtune)%0D%0A
-    %7B%0D%0A        
+%09%7B%0D%0A%09%09
 return M
@@ -1354,21 +1354,15 @@
 d;%0D%0A
-    
+%09
 %7D%0D%0A%0D%0A
-    
+%09
 publ
@@ -1398,31 +1398,22 @@
  rand)%0D%0A
-    %7B%0D%0A        
+%09%7B%0D%0A%09%09
 return 4
@@ -1415,20 +1415,17 @@
 urn 4;%0D%0A
-    
+%09
 %7D%0D%0A    %0D
@@ -1425,20 +1425,17 @@
 %0D%0A    %0D%0A
-    
+%09
 public M
@@ -1469,23 +1469,14 @@
 a)%0D%0A
-    %7B%0D%0A        
+%09%7B%0D%0A%09%09
 retu
@@ -1503,12 +1503,11 @@
 r;%0D%0A
-    
+%09
 %7D%0D%0A%7D
+%0D%0A

Update MudBlock.java