package net.minecraft.block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.util.AxisAlignedBB; import net.minecraft.world.World; public class BlockSoulSand extends Block { private static final String __OBFID = "CL_00000310"; public BlockSoulSand() { super(Material.sand); this.setCreativeTab(CreativeTabs.tabBlock); } /** * Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been * cleared to be reused) */ public AxisAlignedBB getCollisionBoundingBoxFromPool(World worldIn, 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 worldIn, int x, int y, int z, Entity entityIn) { entityIn.motionX *= 0.4D; entityIn.motionZ *= 0.4D; } }