/** Called then the block is activated (right clicked). Usually opens the GUI of the container. */
 public boolean onBlockActivated(
     EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
   if (worldObj.isRemote) return true;
   if (!canPlayerUseContainer(player)) return true;
   openGui(player);
   return true;
 }