001 package net.minecraft.src;
002
003 public class BlockSoulSand extends Block
004 {
005 public BlockSoulSand(int par1, int par2)
006 {
007 super(par1, par2, Material.sand);
008 this.setCreativeTab(CreativeTabs.tabBlock);
009 }
010
011 /**
012 * Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been
013 * cleared to be reused)
014 */
015 public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
016 {
017 float var5 = 0.125F;
018 return AxisAlignedBB.getAABBPool().addOrModifyAABBInPool((double)par2, (double)par3, (double)par4, (double)(par2 + 1), (double)((float)(par3 + 1) - var5), (double)(par4 + 1));
019 }
020
021 /**
022 * Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity
023 */
024 public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
025 {
026 par5Entity.motionX *= 0.4D;
027 par5Entity.motionZ *= 0.4D;
028 }
029 }